Commit Graph

2673 Commits

Author SHA1 Message Date
joseLuís
7070e532d6 fix typos 2020-08-11 17:04:09 +02:00
joseLuís
7abda11404 add comments for ncpixel functions 2020-08-11 16:59:39 +02:00
joseLuís
dbec390fac rust: improve some channel functions
Functions `channel_set()`, `channels_set_fg()`, `channels_set_bg()`
don't return an error anymore. Instead of failing when the rgb value
has any of the last 8 bits set, now it just ignores those bits.
2020-08-11 16:41:18 +02:00
joseLuís
6424e453aa rust: add test modules skeletons 2020-08-11 14:31:57 +02:00
joseLuís
ec92d13306 rust: improve info headers 2020-08-11 14:25:40 +02:00
joseLuís
da34965fcd rust: implement pixel functions 2020-08-11 12:27:40 +02:00
joseLuís
7790913d2f fix typos & improve comments 2020-08-11 11:38:30 +02:00
joseLuís
8b01f26730 rust: improve info headers for maximum consistency
and implement 1 palette fuction
2020-08-11 11:31:29 +02:00
joseLuís
70adc5645b rust: reimplement keys fns & consts 2020-08-11 10:50:51 +02:00
joseLuís
181a5a20ff Merge branch 'rust-no_std' of github.com:dankamongmen/notcurses into rust-no_std 2020-08-11 00:01:21 +02:00
joseLuís
a29fa0395d add handy cargo aliases 2020-08-10 23:56:57 +02:00
joseLuís
ba660aa69b make rust bindings no_std compatible, fixes #872 2020-08-10 23:56:09 +02:00
joseLuís
0362a11f63 make it compatible with no_std environment 2020-08-10 23:48:56 +02:00
joseLuís
799407f98c prepare modules for pending work 2020-08-10 23:44:40 +02:00
joseLuís
2fe9e4c22b make it compatible with no_std environment 2020-08-10 10:57:11 +02:00
nick black
8759572632
zoo demo: smooth out delays in mselect input #835 2020-08-10 01:33:49 -04:00
nick black
e5d17fd20c
zoo demo: smooth out delays in selector input #835 2020-08-10 01:30:27 -04:00
nick black
e0bb0607a0
scan-build false positive workarounds #624
Eliminate scan-build false positive about garbage value
in conditional by replacing a malloc+manual init with a
calloc() #624. The other error it has been reporting goes
away with -maxloop=1000, so I think we're fine now.

Also, simplify paint() by dumping the lfdimx parameter, which
is always the same thing as dstlenx (we originally wrote this
with different resizing semantics). Update callers.
2020-08-10 01:07:10 -04:00
nick black
5b432c6d94
tighten_reel: don't call trim_reel_overhang() with NULL 2020-08-10 00:16:32 -04:00
nick black
82fe736d15
qrcode: fix ncvisual memory leak 2020-08-10 00:04:08 -04:00
nick black
5d08641751
zoo: don't use initialized variable on error path 2020-08-09 23:13:54 -04:00
nick black
ac4a53bf3b
trim_reel_overhang: don't rely on assert()s 2020-08-09 23:10:07 -04:00
nick black
4a8d56cbfc
zoo: propagate return codes out of selector demos #835 2020-08-09 22:38:51 -04:00
nick black
d6e2ae5262
zoo demo: propagate out return code #835 2020-08-09 22:34:59 -04:00
nick black
02c29f39b6
reel demo: adapt to new tablet callback #818 2020-08-09 22:25:03 -04:00
nick black
f0f3b9f45f
ThreeCycleDownNoTabletBorders unit test #818 2020-08-09 22:14:56 -04:00
nick black
1f296256e3
ncreel_trim: work on borderless reels #818 2020-08-09 21:46:49 -04:00
nick black
f586e7f47d
ncreel_draw_tablet: properly resize borderless border plane #818 2020-08-09 21:24:12 -04:00
nick black
9fd7ba44dc
ncreel_redraw: handle 0-line data planes via genocide 2020-08-09 18:04:55 -04:00
nick black
d10c9a6401
ncreel: pre-trim nuke for bottom #818 2020-08-09 17:57:10 -04:00
nick black
9988700588
drop patreon link, patreon is the lame 2020-08-09 17:49:21 -04:00
nick black
48615b8b3d
CMake: missed a word in title =] :D 2020-08-09 17:47:21 -04:00
Nick Black
11d6a4eb89
New reel layout algorithm #818 (#870)
New reel layout algorithm based on trimming and sifting. Fixes the original issue of #818, though I'm not marking that bug fixed until I've resolved the little issues remaining with this one.
Back off CMake version dependency, see if we can get by with 3.11.4 for EPEL8 #851
Simplify tablet drawing tremendously by separating tablet border and data planes. Callbacks no longer need worry about the borders; they can simply fill the plane they're handed. #833
Improve notcurses_debug() a bit
Add ncplane_new_named() and friends to expose plane naming to the user.
Add internal ncplane_genocide() to kill a plane and all its bound descendents
New industrial-strength ncreel unit testing
notcurses-ncreel now accepts -ln for log level n
Add ncplane_parent() and ncplane_parent_const()
2020-08-09 17:40:59 -04:00
nick black
dbdbf32b5e
cull .gitignore of obsolete contents 2020-08-09 11:10:10 -04:00
joseLuís
2f1b4074eb fix & refactor Rust bindings
- move types functions out of lib.rs into their own modules
- add modules types, and for cell & plane functions
- change error handling for consistency with the underlying lib
- reformat the code
2020-08-09 16:48:26 +02:00
joseLuís
a0264c6a4b add build dir and vim temp files to .gitignore 2020-08-09 16:30:38 +02:00
José Luis Cruz
92350b4694
turn off doctests
Fixes bindgen errors due to invalid Rust comments imported from functions `ncmultiselector_options` and `ncselector_item`.

Related:
- https://github.com/rust-lang/rust-bindgen/issues/426
- https://github.com/rust-lang/rust-bindgen/issues/1749
2020-08-09 16:24:58 +02:00
joseLuís
e9bf400a7e tidy up & update crate deps, categories & keywords 2020-08-09 13:36:43 +02:00
nick black
75e805d1f1
selector/multiselect: interpret pgdown/up as arrows #862 2020-08-08 21:20:47 -04:00
nick black
b977b5b84d
zoo demo: selectors go behind exposition plane #835 2020-08-08 21:11:13 -04:00
joseLuís
84c637d3e8 copy all comments as doc Rust comments
In principle it would be better to write the comments intented
for documentation as `///` (or `/** */` for multi-line), but
this way it works mostly, without having to change them all.

There are two comments that are not valid Rust doc-comments,
and arerendered badly: The are the ones in:
`ncmultiselector_options` and `ncselector_item`.
2020-08-08 18:32:45 +02:00
joseLuís
de643589b1 export all new channel functions 2020-08-08 18:04:00 +02:00
José Luis Cruz
8368380b66
Merge pull request #867
Remove warnings about improper_ctypes
2020-08-08 17:54:51 +02:00
joseLuís
590fbf4f1f move channels.rs to libnotcurses-sys crate 2020-08-08 17:49:12 +02:00
joseLuís
2842ffb751 add remaining channel functions 2020-08-08 10:53:32 -04:00
joseLuís
2e640d4146 rewriting the channels inline functions in Rust 2020-08-08 10:53:32 -04:00
nick black
3bb95824fc update some terminology 2020-08-08 10:53:32 -04:00
nick black
2f3fba59c8
revert early-morning idiocy #866 2020-08-08 10:30:57 -04:00
nick black
4232ca1427
blitters PoC: hoist ncv creation from main loop #866 2020-08-08 10:28:38 -04:00
José Luis Cruz
9366028919
Remove warnings about improper_ctypes
Fixes: #856
2020-08-08 15:32:02 +02:00