Commit Graph

85 Commits (master)

Author SHA1 Message Date
nick black 4fc099f2e9
reel/plot/menu: properly warn on bad flags 4 years ago
nick black 56d94e9392 intro: add a bar on top to match bottom 4 years ago
nick black d5574cab9a
restructure progbar logic to prep for highres #1209 4 years ago
nick black 4984903d61
intro: better use of flipmode bar 4 years ago
nick black fd2acde1b1 rename cell->nccell, keep alias #1200 4 years ago
nick black 683217ef07 normalize style setters #1034 4 years ago
nick black b7a57eaab7 convert all channel rgb calls #985 4 years ago
Nick Black 73dc0a7d69
Zoo 2, electric boogaloo (#939)
* Reimplement the widget zoo demo. The previous PoC
  was a multithreaded monster with behavior dependent
  on screen geometry. Replace it with a single thread state
  machine. Closes #936.
* Support titles for ncplot. Adds title to the ncplot_options
  struct, which may be NULL. Closes #941 .
* Properly color ncplot according to maxchannels and
  minchannels. Closes #940
* Add tools/function-table.sh script for generating public API list.
4 years ago
nick black ab04b607b8 demo: don't print 4th version component unless non-0 4 years ago
nick black 5c5077840e
intro/hud: place things a bit tighter to avoid HUD stomping intro line 4 years ago
nick black 3ef1a3a07d
add notcurses_version_components() 4 years ago
nick black 5a9e0c6f05
rendering: lack of term capability is not error #768
If we don't have setaf/setab, then we're not going to set color.
OK, fine. Don't regard it as an error during
notcurses_rasterization(), just don't emit the escape. This is
necessary to run on terminals like vt100, which in turn is
necessary to run unit tests properly on Redhat's koji.
Also, use notcurses_canfade() to avoid just breaking during
fades in intro and trans demos.
4 years ago
nick black 452fdc671d
intro: move legend into main plane 4 years ago
Nick Black 0084dbaa6d
qrcode generalization #699 (#713)
Add convenience function ncplane_home(). Add an ncblitter_e param
to ncplane_qrcode(), and split int maxversion into value-result
int* ymax and int* xmax. Write the actual sizes of the resulting
visual into these parameters. Update the qrcode demo. Add the
qrcode PoC. Update demos to ncplane_home(), where possible.

ncplane_qrcode() now takes an ncblitter_e and two value-result int*s
in the place of a single value int. The final size of the displayed qrcode
is written to *ymax and *xmax. If the code can't fit within the specified
dimensions, an error is returned. Standard rules for pluggable blitters
apply regarding fallback etc. #699
4 years ago
nick black 9675ed251e
eagle demo: work with ascii mode #634 4 years ago
nick black a45d888601
All fill-type functions return cells changed
Fill-type functions used to return 0 for success, and -1
on failure. They now return the number of cells written
on success, similarly to ncvisual_render(). Resolves #427.
4 years ago
nick black d5d827f38e
adjust ncplane_yx() for margins 4 years ago
nick black eead4c1414
notcurses_highgradient() added #398 4 years ago
Nick Black 745e742a12
Fix gradient engine #368 (#372)
Simplify and correct the gradient engine, resolving all test breakage.
4 years ago
nick black 126145e417
demo: convert to new notcurses_stddim_yx() where appropriate #365 4 years ago
nick black cff477776c
intro: don't keep rotating bar during fade 4 years ago
nick black f5eda4b773
intro: constrain horizontal size of center panel for new logo 4 years ago
nick black 865241ee7c
intro: always reset cursor on entrance 4 years ago
nick black def5dd49e2 intro: throw up a nice gradient 4 years ago
nick black 2114cc2eda demo: rewrite handloop with ncplane_gradient() 4 years ago
nick black b637ee9bf9
render: lock in highcontrast at the end 4 years ago
nick black bae60a98e7
demo: all demos can be interrupted via demo_render() 4 years ago
nick black 328426c3e7 demo: adapt intro to menu 4 years ago
nick black 71dbfd74f7 ncmenu: step around alignment NULL #332 4 years ago
nick black 54c57b3487 s/CELL_STYLE/NCSTYLE/ throughout 4 years ago
Nick Black da0283ac25
Selector widget #166, subtitles #95 (#301)
Get rid of annoying empty line in notcurses-view (and ncvisuals at offsets in general)
Implement most of the Selector widget. Need to add styling and scrolling still. #166
Reenable ubuntu focal build
Subtitles! We decode them, and display them in notcurses-view. If ncvisual_simple_streamer() is provided an extra ncplane, it will use it to display subtitles. #95
We now build Python by default, as things are working much better.
ncplane_set_base() now takes channel, attrword, and EGC, so you can usually avoid having to set up and release a cell. ncplane_set_base_cell() takes over duty from ncplane_set_base() for ease of conversion.
notcurses-demo and notcurses-view now both accept a 0 for delay multiplier, meaning 'go as fast as you possibly can'. Very small multipliers (e.g. 0.00001) no longer cause floating point exceptions.
fading routines no longer cause floating point exceptions on very small timescales.
4 years ago
nick black bb0cdb2b88
demo: add demo_nanosleep() for HUD 5 years ago
nick black b02acd8631
Curry a void* to fader callbacks #284 5 years ago
nick black 97e17c6cf5 demos: lock in some backgrounds 5 years ago
nick black 44af796e74 demos: lock in some backgrounds 5 years ago