Commit Graph

237 Commits (79661633f0ecaac3ca5093cb21faa52b74740bae)

Author SHA1 Message Date
nick black aacec297b2
ncmenu: declare ncmenu_offer_input() 5 years ago
nick black 74b9690cf3
ncmenu: remove dumb restrictions/special casing 5 years ago
nick black 3cdac5ce28 high-contrast text, simple linear average model #181 5 years ago
nick black 1ed6000193 ncstats: add plane count, fix fbbytes accounting 5 years ago
nick black d05abe8626 use channels_set_bchannel() 5 years ago
nick black 62488eaf10
blit->ncblit #324 5 years ago
nick black 74775b97ec
enmetric->ncmetric #324 5 years ago
nick black 89f516dcaa
tablet->nctablet, add ncreel to python #324 5 years ago
nick black c519c95fff
panelreel -> ncreel #324 5 years ago
nick black 09ff64e19f
ncdirect_style_*() #321 5 years ago
nick black bb7b92ea4a
ncdirect_styles_*() declarations #321 5 years ago
nick black 5cd3a4c41d
ncdirect_dim_y()/x() 5 years ago
nick black 2a9f3c5ab3
ncmenu_selected(), update docs #179 5 years ago
nick black 10a269c963
ncmenu: reject double menu 5 years ago
nick black 039a390877
ncmenu: print item shortcut aligned right #179 5 years ago
nick black 79a92fcfb1
ncmenu: highlight shortcut keys for menu items 5 years ago
nick black 3821b66bc7
menu: highlight (bold+uline) section shortcuts 5 years ago
nick black 5cf1bba5f5
menu: unit test with section #179 5 years ago
nick black ee6eb1a37b
ncmenu: support iteration within a section 5 years ago
nick black fa88f9b525
ncmenu: nextsection/prevsection 5 years ago
nick black 4586dd7e19 ncmenu: properly place unrolled menu #179 5 years ago
nick black 31a07dab33
menu: extend across width of screen #179 5 years ago
nick black fdc541c6e5 copy over menu elements #179 5 years ago
nick black 54c57b3487 s/CELL_STYLE/NCSTYLE/ throughout 5 years ago
nick black 8984422f1e basics of menu #179 5 years ago
nick black 6e642f1749 more menu work #179 5 years ago
nick black 2cf3835ddd Add menu_options struct #179 5 years ago
nick black 25ce448889
rgba_blit()/bgrx_blit() #311 5 years ago
nick black c1664170fd
selector: bgchannels only inside the body #302 5 years ago
nick black fad612bd2f
Use column width in selector calculations #302 5 years ago
nick black 5982707f9e
add mbswidth() function, unit tests, docs 5 years ago
nick black 85f042c644
add selector to README #302 5 years ago
nick black d30df23f43
selector: support non-zero default idx #302 5 years ago
nick black 09d2e35372 C++ wrappers: kill Visual::destroy_plane() #299
ncvisual_destroy() already calls ncplane_destroy() when
appropriate. There's never a need for the C++ wrappers
to explicitly free the Visual's underlying Plane. With
this change, valgrind no longer complains upon exiting
notcurses-view(1).
5 years ago
nick black a57f0f234c
selector styling 5 years ago
nick black 3991b3e53a
selector: implement maxdisplay. unit tests! 5 years ago
nick black ac2b951fa9
ncselector_selected(), unit tests 5 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.
5 years ago
Marek Habersack cd6d1e16d1 Properly clean up when NotCurses instance is destructed
We need to set `_instance` to `nullptr` or we'll leave a dangling
pointer.
5 years ago
nick black 1fd0563093
Direct mode with its own type #77
Introduce the new type 'ncdirect', a stripped-down 'notcurses'
suitable for inline modification of regular output. Used the new
type because otherwise there were going to be if(directmode) checks
everywhere. Direct mode encompasses only colorizing and styling.
Add new man page notcurses_directmode(3). Add new section to README.
Add new PoC using direct mode RGB. Update demo table summary to use
direct mode.
5 years ago
nick black 3d4e157af6 direct-mode coloring #77 5 years ago
nick black 2ea10d4b28 Remove clear_screen_start option
As it turns out, we can't portably load the initial terminal contents
(there are some hacks of various EXTREME nature, but none of them are
worth it for the rather limited benefit). The O(1)-time damage
inference requires knowledge of what was previously present to
inibit unnecessary draws. We would then need some special cell value
indicating "not yet written to" to distinguish a purposeful null
cell from an initial cell. Again, we could do this, but for what value?

Finally, the idea of clearing new area on SIGWINCH was always flawed,
as we can't do that from a signal handler.

With the advent of direct mode #77, the reason for this largely goes
away in any case.
5 years ago
nick black 55699c6a3c
render summary: autoscale all times 5 years ago
Marek Habersack 75a90461dd Add C++ bindings 5 years ago
nick black be3a53f3cf
input: function key defs through kf59 5 years ago
nick black 507c3e1d00
expunge wayward fragment of comment 5 years ago
nick black 4ece4a9075
demo: skip demos which we don't have support for 5 years ago
Nick Black 3d612aebcb
ruins color cycling demo #253 (#287)
* palette_set: update pal256 damage map #230
* drone: use newest builders
* palette: send oc on exit for color reset #285
* palette_new: copy existing palette in #230
* Python: use checkRGB everywhere
* more palette unit testing
* add ncplane_set_*_palindex()
* render fg palindex #230
* palette index color is out of 1000
* jungle demo works #253
5 years ago
nick black 3e9347a339
palette color: unit test for alpha clear 5 years ago
nick black b02acd8631
Curry a void* to fader callbacks #284 5 years ago