Commit Graph

374 Commits (4e1897c1c008537b18b9c9cd992c44681fbde9a7)

Author SHA1 Message Date
nick black 8bd73378cf
add NCSCALE_INFLATE 3 years ago
nick black ea4c593455
v2.3.0 3 years ago
nick black dc9db79100
v2.2.11 3 years ago
nick black f080e1502b add ncplane_erase_region() 3 years ago
nick black 00962bb99f
add note about Requires.private to NEWS.md #1635 3 years ago
nick black 84c7aca04e
add ncblit_rgb_packed(), ncblit_rgb_loose() #1634 3 years ago
nick black 2d6bdd3b5b
v2.2.10 3 years ago
nick black 4f5a8480c0 document new option NCVISUAL_OPTION_CHILDPLANE #1603 3 years ago
nick black 923bc40516
v2.2.9 3 years ago
nick black 8e0173cce3
cell unit tests: use nccell_width() 3 years ago
nick black 3eb004b61d s/channels/ncchannels/g #1570 3 years ago
nick black d8cc3569ac
Block some signals while writing
Writing a partial escape can easily lock up a terminal. This
is especially relevant when working with bitmaps, as they're
thousands or even millions of times longer than a typical
escape. Immediately before writing, block SIGINT, SIGQUIT, and
SIGTERM in the writing thread, and unblock them upon emerging
(at which point we'll immediately see any queued signal
get delivered). Don't block signals like SIGSEGV that would
seem indicative of actual problems. For this to actually work,
all other threads must also have the signals masked; we thus
now add them to the signal mask of notcurses_getc(), rather
than deleting them. Closes #1416.
3 years ago
nick black e43a9955cd
channel_* functions -> ncchannel_* #1570 3 years ago
Nick Black c8680255be
palette256 -> ncpalette #1570 (#1573)
everything prefixed with palette256 is now prefixed with ncpalette
3 years ago
nick black f4aa419a31
add notcurses_canhalfblock()/notcurses_canquadrant() #1575 3 years ago
nick black 6c7b40debf
add stats for sprixel emissions/elisions #1563 3 years ago
nick black d5b58d9f58
v2.2.8 3 years ago
nick black eefc4fb91f
v2.2.7 3 years ago
nick black 6b7195a387 document new function ncvisual_inflate() #1546 3 years ago
nick black 32500239ac
cell_extract() -> nccell_extract() 3 years ago
Nick Black e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
3 years ago
nick black e017dcba89
v2.2.6 3 years ago
nick black 0c566cd74a [ncvisual] pipe transcolor through #1518 3 years ago
nick black d504e972cc
cell_release -> nccell_release 3 years ago
nick black cf3a6317aa export ncdirect_stream() 3 years ago
Nick Black 04b1ba8ed2
Dankamongmen/unify geom (#1514)
deprecate ncvisual_geom() in favor of new ncvisual_blitter_geom(), which allows caller to get the blitter used. replace the checks and calculations in ncvisual_render() with a call to ncvisual_blitter_geom(), unifying the two paths (and eliminating several bugs in the unloved ncvisual_geom()).
3 years ago
nick black f294c6bb0b
add ncplane_pixelgeom() #1507 3 years ago
nick black 05082fc277
ncplane_as_rgba(), returns pixel geometry along with bitmap #1508 3 years ago
nick black 8c78b089e1
v2.2.5 3 years ago
nick black 57114c8005
[bitmaps] remove redundant PixelWipeBlocks test 3 years ago
nick black 78c8e70933 [planes] add NCPLANE_OPTION_MARGINALIZED #1472 3 years ago
nick black 86de98c5d2 Fix cell blit / plane vertical alignment
Deprecate ncplane_align(), after rewriting it as a passthrough
to new function ncplane_halign(). Add ncplane_valign(). Update
all callers. Closes #1468.
3 years ago
nick black 6105913d06 [planes] add NCPLANE_OPTION_VERALIGNED #1465 3 years ago
nick black 828cce634a [capabilites] remove redundant notcurses_canpixel() 3 years ago
nick black 852b0ad0ec
[NEWS] mention nctabbed for 2.2.4 3 years ago
nick black f8b68947f3 [NEWS] mention NCVISUAL_OPTION_HORALIGNED #1443 3 years ago
nick black 33d408b4a3
[sixel] call sprite_sixel_init at proper time #1436 3 years ago
nick black a6548fbcc8 [ncvisual] refuse to blit bitmaps to standard plane 3 years ago
nick black f35e2eb982
notcurses_visual.3: link to sixel/kitty 3 years ago
nick black bc84987af5
v2.2.3 3 years ago
nick black 4a203ef0a9
direct mode: optimize out redundant SETAF, nice 3 years ago
nick black 49ce0d1c57
mention SIGCONT along with SIGWINCH 3 years ago
nick black 100a89291b hide cell_{b,f}channel(), cell_set_{b,f}channel() 3 years ago
nick black 6c7c9be6d2 require explicit check for pixel support
Add `notcurses_check_pixel_support()` and
`ncdirect_check_pixel_support()` per #1367. Removes
NCOPTION_VERIFY_SIXEL, again per #1367. Adds
`free_terminfo_cache()`, and calls it from both
`notcurses_stop_minimal()` and `ncdirect_stop()`.
Update all documentation. Closes #1371 and #1367.
3 years ago
nick black e782287142 add NCBLIT_PIXEL to NEWS 3 years ago
nick black fe8abbecc5 NEWS: mention nctree for 2.2.3 3 years ago
nick black 2221120543 add SIGILL to documented fatal signals #1357 3 years ago
nick black c10f5a40ce
v2.2.2 3 years ago
nick black 1df9d85f28
Lock accesses to notcurses_stats #1139
notcurses_stats() and notcurses_stats_reset() now take the
new statlock member, as do stat modifications from render,
raster, writeout, resize, plane creation, and plane
destruction. Add nonnull attributes to stats API. Initialize
and destroy statlock as part of notcurses struct. Update
documentation. Free pilelock on error paths. Closes #1139.
3 years ago
nick black 1b1e0b88be
ncplane_qrcode: drop blitter argument, update docs 3 years ago
nick black be4a9154a8
v2.2.1 3 years ago
nick black 3cdf7160de
v2.2.0 3 years ago
nick black 6b126f4049
add notcurses_canbraille() capability test 3 years ago
nick black 54ca2249df
v2.1.8 3 years ago
nick black b3569b6aef
Initialize Readline on demand
Eliminate NCDIRECT_OPTION_NO_READLINE (it was only introduced in
Notcurses 2.1.6). Add a new function, ncdirect_readline(). Upon
first call to this function, initialize libreadline. Destroy
libreadline in ncdirect_stop() iff we initialized it. Add
hilodirect guessing game PoC from #1325. Rename
notcurses_directmode.3 to notcurses_direct.3. Closes #1326.
3 years ago
nick black 2491b693ba
Add missing channel_set_palindex()
Implement channels_set_fg_palindex() and channels_set_bg_palindex()
in terms of channel_set_palindex(). Add missing entries to
notcurses_channels.3 man page. Use uint32_t in place of unsigned
when dealing with channels in notcurses.h.
3 years ago
nick black 7eafcfe598
rename notcurses-tetris -> nctetris 4 years ago
nick black 121f10a9c5
v2.1.7 4 years ago
nick black 57271d09ce
v2.1.6 4 years ago
nick black 45c389a709 document *_core_init() #1301 4 years ago
nick black 1631818784
rename notcurses-view to ncplayer #1299 4 years ago
Nick Black 9112185657
Split up notcurses/notcurses-core (#1297)
Extract `libnotcurses-core` from `libnotcurses`. The former contains everything except multimedia code. The latter contains multimedia stuff (a wrapper around FFmpeg or OIIO). If built with `-DUSE_MULTIMEDIA=none`, there will not be any `libnotcurses.so` generated. `libnotcurses.so` uses library constructors/destructors to insert its implementation into the `ncvisual` stack at runtime. Users linking `-lnotcurses` will get the full implementation; users linking `-lnotcurses-core` only will get the stack less multimedia code.

The upshot of this is that someone can compile/install only `libnotcurses-core`, and a program linked against it will work just fine. This eliminates the need to install the full (large) dependency stack of the multimedia code unless necessary. This will hopefully be useful for e.g. installers etc. Closes #339.
4 years ago
nick black 3ecdde74d0
v2.1.5 4 years ago
nick black 1108ebb5b6
Fix up some subtle pile issues
ncplane_destroy() needs to call ncplane_reparent_family(), not
ncplane_reparent() as it was doing (closes #1291). ->absy and
->absx actually are absolute; return them directly for an O(1)
ncplane_abs_yx() (down from O(N), huzzah). Add some unit tests
related to destroying and reparenting (#1286). Add ncplane_abs_y()
and ncplane_abs_x(), document them, etc.
4 years ago
nick black 1c0a623b8b
document new function ncplane_abs_yx() #1286 4 years ago
nick black 0a165a9de8
paint: solve for egc following colors #1068 4 years ago
nick black 68b340e3c8
ncdirect: prep readline for use #1120 4 years ago
nick black 15386d57ce
nontrivial stacking unit test #1068 4 years ago
nick black e617acecc7
v2.1.4 4 years ago
nick black 998cf02f34
add NCDIRECT_NO_QUIT_SIGHANDLERS #1271 4 years ago
nick black 70b74a749b
v2.1.3 4 years ago
nick black f1253560ad
ncdirect: set_ on rgb functions #1261 4 years ago
nick black 76d8e2dfce
ncdirect_{fg, bg}_default() -> ncdirect_set_{fg, bg}_default() #1261 4 years ago
nick black 638dde7657
remove unnecessary args from ncdirect_raster_frame() #1248 4 years ago
nick black 1d8fcbb5e4
ncdirect: styles{set, on, off} -> _styles #1247 4 years ago
nick black 55d563b646
v2.1.2 4 years ago
nick black 4d8efcab82
Progress towards NCBLIT_3x2 by default
Add a new member 'sextants' to the terminfo cache (both
notcurses and ncvisual contain one of these, and both
initialize it the same way -- interrogate_terminfo()).
Add a new function, 'notcurses_media_defblitter()', and
deprecate 'ncvisual_default_blitter()' (the latter didn't
receive enough information to return NCBLIT_3x2). Update
all callers. Add new *internal* function rgba_default_blitter(),
so this logic can be freely changed in the future. If
sextants are available, and we're scaling, return NCBLIT_3x2.
Once we detect sextant availability, we'll have sexblitter
as a default -- stay tuned! #1114
4 years ago
nick black e1b1654d1e
NEWS: mention ncdirect image render split 4 years ago
nick black 248dd1fff2
add dynamic linesig control #1228 4 years ago
nick black d6d5757b1d
v2.1.1 4 years ago
nick black d56ea8b5e7 progbar: remove egcs options 4 years ago
nick black 6edafd1f84
v2.1.0 4 years ago
nick black fd2acde1b1 rename cell->nccell, keep alias #1200 4 years ago
nick black 8497ee1877
v2.0.12 4 years ago
nick black 5fc0577529
NEWS: mention ncplane_resize_maximize() 4 years ago
nick black eb485cda21
v2.0.11 4 years ago
nick black a3220b8a73
add ncplane_descendant_p(), unit test it #1192 4 years ago
nick black 361a253aea
v2.0.10 4 years ago
nick black 6fb5c1e512 Fill out some API holes, improve some comments
- Disambiguate the docs for ncplane_erase()
- Add ncpile_top(), ncpile_bottom()
- Refuse attempts to modify the standard plane's resizecb
- Copy alignment and resizecb in ncplane_dup()
- Add cell_load_egc32()
4 years ago
nick black 8083b46e3b
v2.0.9 4 years ago
nick black 2a45620cd6
v2.0.8 4 years ago
nick black e3b2c91999
add NOTCURSES_VERSION_COMPARABLE #1131 4 years ago
nick black 202e3535d5 document new NCSTYLE_STRUCK #1138 4 years ago
nick black fd97aa844c implement ncpile_{render, rasterize}() 🦀🦀 #1135 4 years ago
nick black b2516d8534 Declare ncpile_render() and ncpile_rasterize() #1135 4 years ago
nick black aa5b881e84 NEWS: purge empty sections 4 years ago
nick black a2c35735d1 finish out NEWS for multipiles #1078 4 years ago
nick black 740dc2497d NEWS: mention integer version defines 4 years ago
nick black b6e5b60374 ncpile_create() not NCPLANE_OPTION_NEWPILE #1078 4 years ago
nick black b747af2ae8 drop NCPLANE_OPTION_NEWPILE #1078 4 years ago
nick black 0da6a8c44b add NCPLANE_OPTION_NEWPILE #1078 4 years ago
nick black 73b2f1bf19
v2.0.7 4 years ago
nick black acdcf9e41f
v2.0.6 4 years ago
nick black 537caa2173
v2.0.5 4 years ago
nick black 65ed8c0d86
undeprecate ncplane_new(); why break running code? 4 years ago
nick black c0cb5c7ff9
add ncplane_resizecb() #1124 4 years ago
nick black 6084105c68
add ncplane_set_resizecb() #1124 4 years ago
nick black a92e5d97e0 don't threaten to remove ncplane_new() #1115 4 years ago
nick black 61baabe9a1 eagle, HUD: use default blitter 4 years ago
nick black eef6df8c0a death to horiz #1115 4 years ago
nick black a9fbe41f2b document the New Way 4 years ago
nick black 7622cefc3a
v2.0.4 4 years ago
nick black 0d31a03be9
v2.0.3 4 years ago
nick black 8a81d06b4b
ncreader: implement reamining shortcuts #983 4 years ago
nick black 1b1d727169
ncreader: support ctrl-a and ctrl-e #983 4 years ago
nick black 4203c2402f notcurses-demo: improve usage() for 25 demos #736 4 years ago
nick black 7ad0ed2cc2 blitters don't count transparent cells against written count 4 years ago
nick black 8189d21709
v2.0.2 4 years ago
nick black b35c680f48 add LoopVideo unit test #1066 4 years ago
nick black 8919d6fe70 ncvisual_rewind 4 years ago
nick black a4546c86e3
v2.0.1 4 years ago
nick black 0b825c619e
add notcurses_stddim_yx_const() 4 years ago
nick black 34442f263f demo: let ncmenu handle section shortcuts #1058 4 years ago
nick black 3229fa53b3
add ncinput_equal_p() predicate #1059 4 years ago
nick black 6623fc92a0
ncmenu_item_set_status: man page, NEWS, python, c++ #1057 4 years ago
nick black 65974aeb0b
v2.0.0 4 years ago
nick black fbd3d7fc7f
add 2.0.0 release notes 4 years ago
nick black 8c9611d085
v1.7.6 4 years ago
nick black 4493ac3fa2 note putwc -> putwch in NEWS 4 years ago
nick black d101d2d2d9 add ncdirect_init() inhibit cbreak flag #1049 4 years ago
nick black c6c157a5ad
notcurses_stats_alloc() everywhere 4 years ago
nick black f9e2c7863b
add notcurses_stats_alloc #1043 4 years ago
nick black b4f1065f69 declare notcurses_render_to_buffer() #214 4 years ago
nick black 222861de13 add ncstats to USAGE.md 4 years ago
nick black 20a49d053d
v1.7.5 4 years ago
nick black 683217ef07 normalize style setters #1034 4 years ago
nick black c236b65266 name standard plane 'std' 4 years ago
nick black a591e11c96 retain nctablet_ncplane() as deprecated alias 4 years ago
nick black 20bf1ae2d4
nctablet_ncplane() -> nctablet_plane() 4 years ago
nick black ec85dd1c3b
ncreel_destroy: return void 4 years ago
nick black f02263e977
v1.7.4 4 years ago
nick black 2d9598b913
introduce ncplane_resize_realign #364 4 years ago
nick black 7b51bab79a add resizecb to ncplane_options struct #869 4 years ago
nick black 97dc50db1a kill stray entry in NEWS 4 years ago
nick black 36aed3c521 add ncplane_create() + ncplane_options #1020 4 years ago
nick black 607c03edc4
rename _rgb_clipped functions rgb8_clipped 4 years ago
nick black 4459efa216
v1.7.3 4 years ago
nick black a4367fcfb5 rip out ncplane_ creation functions #985 4 years ago
nick black e42dbdfd60 _stainable() -> _stained() #985 4 years ago
nick black 0e34bec3fb start converting rgb->rgb8 #985 4 years ago