Commit Graph

4100 Commits (e20fb4ac8fb1f397761331c15cee1cd29239d1e5)
 

Author SHA1 Message Date
nick black a991e0f624
ncdirect_putstr(): fix up foreground default #1269 4 years ago
nick black 478d7cb514
update channels in ncdirect palindex #1275 4 years ago
joseLuís 797ef4b0ae rust: more changes and improvements
- raw field of new wrapping structs is now public just to the crate.
- NcNotcurses.stdplane method now doesn't return an NcResult since it can't fail.
- rename NcNotcurses to Notcurses and NcNotcursesOptions to NotcursesOptions.
- rename NcPlane::new_termsize constructor to with_termsize.
- bump MSV to 1.48 for the doc links.
- improve lib documentation.
- minor fixes.
4 years ago
nick black 9dcbda54ef
postpaint_cell()/ncplane_putc(): handle EGCs of more than 2 columns #1273 4 years ago
nick black 8285b131c6
cell_duplicate_far: drop obsolete FIXME 4 years ago
nick black e5fd6a832a
back out running postpaint_cell() #1272 4 years ago
joseLuís bad3449205 rust: rename Notcurses to FullMode; update doc 4 years ago
joseLuís f5f9397f7b rust: add new wrapper type over NcDirect called DirectMode. 4 years ago
nick black 32bacf19e5
drone: use new unstable builder 4 years ago
nick black 9021526f45
ncneofetch: always call notcurses_stop #1246 4 years ago
joseLuís 6b2805937d rust: add new wrapper type over notcurses struct.
Create new wrapping types that can safely encapsulate the mutable references,
and implement Drop and automatic (de)referencing.

- Notcurses
  - rename Notcurses* to NcNotcurses*.
  - rename NotcursesOptions to NcNotcursesOptions.
  - new Notcurses struct.
    - implement Drop, AsRef, AsMut, Deref & DerefMut.
    - override stop method to be no-op.
    - reimplement constructors and associated methods.
  - remove without_altscreen_with_banners constructor.
- update examples and tests.
- rustfmt.
4 years ago
nick black af07822d35 Document base cell better
Improve the documentation for ncplane_set_base_cell() and
ncplane_set_base(). Go by render.c's authority (all three
channels are independently checked for transparency, and
replaced with the base cell if so--egc, fg, and bg). Add a
BASE CELL section to notcurses_plane.3. Check for, and reject,
an nccell which is secondary among a multicolumn EGC.

Closes #1238.
4 years ago
nick black cc49c715a6
ffmpeg: averr is a raw int 4 years ago
nick black bc4fe21ed1
get smxx/rmxx from terminfo 4 years ago
joseLuís 9323f17d92 rust: keep improving errors & fix some return types
- add more string messages to error! macro invocations for NcPlane & NcCell methods.
- refactor NcPlane.base() to return the NcCell.
- fix cell_prime & NcCell.prime to accept gcluster as &str, as well as cells_load_box.
- fix several return types (u32 instead of NcDimension for counting).
4 years ago
joseLuís 3bf9f11c80 rust: improve direct-cursor example.
- add `rand` as a dev-dependency.
4 years ago
joseLuís 9156cec58f rust: add handy constructors for NcChannel
- fix direct-cursor example.
4 years ago
joseLuís 500456e2e5 rust: continue working on the poc-menu example.
- change return type of NcMenu.selected to Option.
- change type to &str in ncplane_set_base.
- bonus: update some comments.
4 years ago
joseLuís 1d4653e7c8 rust: rename NcInput's new() to new_empty(); add new() 4 years ago
joseLuís a29e9f0014 rust: fix ncdirect_getc_blocking(), and corresponding method 4 years ago
nick black 70b74a749b
v2.1.3 4 years ago
nick black a9ccbc28f9
ncls: support -V/--version #1266 4 years ago
nick black e37b466eea
notcurses-demo: support 'V' for version out #1266 4 years ago
nick black 4616d60ae9
notcurses-view: support 'V' for version out #1266 4 years ago
nick black 0bcb107ae6
fallin: don't carry cell across planes #1265 4 years ago
nick black 7ab2bddde7
notcurses-tester: no alternate screen 4 years ago
nick black 5c3818b103
notcurses-demo.1: use proper pandoc syntax 4 years ago
nick black 84d6d0fae2
mention notcurses-demo geometry requirements 4 years ago
joseLuís 8c29276c70 rust: improve some comments 4 years ago
nick black 99f04fd7e3
correct title for notcurses_progbar.3 link in index.html 4 years ago
joseLuís 5e7bf86b9c rust: almost complete poc-menu example, still has bugs.
- add NcMenuSection::new_separator() constructor.
- rename constructor method for an empty NcInput to new();
- fix notcurses_getc_blocking() function name and error logic.
- improve comments.
- change type of NCMENU_OPTION_* to u64 (like in C API)
- fix error_str![] macro.
- improve error messages.
4 years ago
joseLuís 31e7305ce8 rust: start improving errors reporting.
- refactor error![] macro, switch place for $msg & $ok parameters.
- add more meaningful NcError return values in several functions related with poc-menu example, for starters.
- the poc-menu example now doesn't randomly fail, IDKW but OK I guess.
- minor unrelated corrections.
4 years ago
joseLuís 8e5e60f588 rust: Continue with poc-menu example.
- add NcPlane.pustr_aligned() method.
- disable notcurses_stddim_yx* functions & methods for now.
- make input argument optional for notcurses_getc_nblocking().
- update full-basics example.
- fix comments.
4 years ago
nick black e522429dfb
direct: reorder declarations to please freebsd 4 years ago
nick black f471ab15df
update copyrights for 2021, ho humm 4 years ago
nick black 449455cf4b
microoptimize channels_blend() top half #1262 4 years ago
nick black 7e9dc0d23b
trim README a bit 4 years ago
nick black 8e4158a817
inline postpaint_cell into raster #1262 4 years ago
joseLuís 624bee6d71 rust: add most NcCell methods
- add & fix comments.
- add methods links.
4 years ago
nick black 279d9a7f43
ncls.1 man page: mention --help 4 years ago
nick black 23d3e03386
ncls: handle --help option 4 years ago
joseLuís 7b4c105fdf rust: finish updating rust for ncdirect changes
- update function and method names.
- update intra-doc links.
- update examples.
4 years ago
nick black a7b131a11c
update rust for ncdirect changes 4 years ago
nick black 05b318e487
cffi: sync to new ncdirect functions 4 years ago
nick black c3557dc56a
drone: use new ubuntu builder 4 years ago
nick black eb64ce090d
cffi: sync to new ncdirect functions 4 years ago
nick black f78fadc356
drone: use es_ES on ubuntu for madlad decimal separator testing 4 years ago
nick black 69e329d328
BigMult unit tests: fix for non-'.' decseps 4 years ago
nick black 7e20a25482
ncdirect_*_palindex -> ncdirect_set_*_palindex #1261 4 years ago
nick black f1253560ad
ncdirect: set_ on rgb functions #1261 4 years ago