Commit Graph

462 Commits (master)

Author SHA1 Message Date
nick black a346a5bf64
add new functions notcurses_{host,account}name() 3 years ago
nick black ddd0533b03
NEWS: prep for 2.3.13 3 years ago
nick black 1e248e41e1
v2.3.12 3 years ago
nick black 6162ba3943 restore compatibility ncvisual_subtitle() 3 years ago
nick black b0b5e49383 ncvisual_from_palidex 3 years ago
nick black 3094e52dcc note about ncvisual_subtitle() 3 years ago
nick black ee6de771e4
handle arbitary target glyph widths in ncplane_put #1873 3 years ago
nick black 0d289958f9
death to sigset_t #1967 3 years ago
nick black 3c6eac00e3 NEWS: prep for 2.3.12 3 years ago
nick black 30d71ab6b9
v2.3.11 3 years ago
nick black e8707e575d NEWS entry for iterm2/fbcon drawing 3 years ago
nick black f5ceb7d6b7
mention child plane scrolling in NEWS #1883 3 years ago
nick black 382b68f5ab
why weren't we always handling SIGFPE? 3 years ago
nick black b9b135af1a
add note to NEWS about highcontrast atop default #1947 3 years ago
nick black 1fae68d9c6
add NCPLANE_OPTION_FIXED #1909 3 years ago
nick black 3aaff6a944
v2.3.10 3 years ago
nick black dbe6803dee The mission of this Allied Force was fulfilled at 0241, local time, May 7th, 1945. 3 years ago
nick black 561f4eba8c
v2.3.9 3 years ago
nick black bc4f2a3626
CHANNELS_RGB_ -> NCCHANNELS_ 3 years ago
nick black bfca06264a
fix up indexing for NCBLIT_8x1 plotter #1912 3 years ago
nick black 087fd083af
[brownbag] actually call mouse_{dis/en}able() 3 years ago
nick black 14a50cfa3f
add ncchannels_reverse, use it in ncmenu, add unit test #1878 3 years ago
nick black 0ffa587a68
NEWS: mention ncmenus working on all planes 3 years ago
nick black 8846e3cee2
ncdirect_putegc(), get true width in ncwidth #1899 3 years ago
nick black aa7b46f659
NEWS: mention falsehood in documentation 3 years ago
nick black cd80b70594
add ncplane_moverel(), no unit tests though =[ #1881 3 years ago
nick black 50a7996b4f
notcurses_detected_terminal: use termdesc_longterm() 3 years ago
nick black 1189891167
v2.3.8 3 years ago
nick black 0e341fa3de
notcurses-info.1: describe output 3 years ago
nick black cbb27d2948
NEWS: mention OIIO fixes #1722 3 years ago
nick black 3596b2b2a2
NEWS: describe pure changes 3 years ago
nick black 63e9282893
v2.4.7 3 years ago
nick black dce4426dcf
NEWS: add note about rejecting control chars 3 years ago
nick black 490c89f694 add ncplane_scrolling_p() #1841 3 years ago
nick black 68e498a583
ncls: disable cursor 3 years ago
nick black 9973788efb
restore NCSTYLE_BLINK for now, add 25m to turn it off #1818 3 years ago
nick black 166212f234 document NCOPTION_PRESERVE_CURSOR #1823 3 years ago
nick black 9d7f07771b
GTFO NCSTYLE_DIM, NCSTYLE_REVERSE #1818 3 years ago
nick black 481d539092
v2.3.6 3 years ago
nick black 383678da4e
move remainder of debug_caps into notcurses-info #1793 3 years ago
nick black 8fc2a32990
remove NCSTYLE_{INVIS,BLINK,STANDOUT} #1818 3 years ago
nick black a14a5271ac
v2.3.5 3 years ago
nick black 041f97371f add stat for ASUs and send them #1582 3 years ago
nick black 379453c8ea
render piles to file/buffer
Replace notcurses_render_to_file() and
notcurses_render_to_buffer() with variants that work
on arbitrary piles (the former only worked on the standard
pile). Rewrite the former as trivial wrappers around the
latter, and deprecate the former. Closes #1770.
3 years ago
nick black e5662ac506 add and document sprixelbytes stat #1801 3 years ago
nick black d360cc1d1e ncvisual_from_rgb_{packed, loose}() #1767 3 years ago
nick black c8dfa17485
Set up sane logging for direct mode
All our diagnostic macros required a struct notcurses from
which to extract the loglevel. Eliminate this parameter,
and update all caller sites. Add a library-wide (but not
exported) loglevel variable, and set it from both
notcurses_core_init() and ncdirect_core_init(). Add two
new direct mode flags, NCDIRECT_OPTION_VERBOSE and
NCDIRECT_OPTION_VERY_VERBOSE, mapping them to
NCLOGLEVEL_WARNING and NCLOGLEVEL_INFO respectively.
Closes #1690.
3 years ago
nick black 534000cadb
clamp sixel height in update_term_dimensions() so ncdirect gets it #1789 3 years ago
nick black c9a338e0fd
add ncdirect_canget_cursor() #1790 3 years ago
nick black 3cf971ac67 update ncvisual_plane.3 for ncplane_as_rgba() #1441 3 years ago
nick black 80b7391d96
remove NEWS claim that notcurses_check_pixel_support() is going away #1766 3 years ago
nick black d50792a899
more detail in NEWS for terminal queries #1751 3 years ago
nick black 0d7a5a5ef8 remove the majority of notcurses_check_pixel_support() calls #1469 3 years ago
nick black cadd4aefee s/CELL_ALPHA_/NCCELL_ALPHA_/g 3 years ago
nick black a290e3f741
NEWS: fix typos info: dump more unicode 3 years ago
nick black 160868d9e8
v2.3.4 3 years ago
nick black 0b72bec79d
add ncdirect_ascii_box(), use it in DefaultBox unit test 3 years ago
nick black 4ca1036da9
v2.3.3 3 years ago
nick black d695a8206f
add ncdirect_detected_terminal() and notcurses_detected_terminal() #1759 3 years ago
nick black 21f3dbf72c
NEWS: note ncdirect_box() bugfix #1752 3 years ago
nick black 608943bb95 reference nc->margin when we want margins, not stdplane #1615 3 years ago
nick black 65071fff2d
add note about ncplane_move_yx fix for root planes #1753 3 years ago
nick black 9f4a578e72
factor out common unicode box sequences 3 years ago
nick black cb178ac247
add simple_box() and heavy_box() forms 3 years ago
nick black deea4ddf9c ncdirectf_geom: move to ncvisual_options #1746 3 years ago
nick black c967028fbe ncplayer: add -n option for noninterpolative scaling #1738 3 years ago
nick black 59f4edd777 ncdirectf_render: accept an ncvisual_options #1738 3 years ago
nick black 6fcaad3c5d
generalize ncvisual_inflate() to ncvisual_resize_noninterpolative() #1738 3 years ago
nick black 863c1778aa kitty: cut alphas in half with NCVISUAL_OPTION_BLEND #1735 3 years ago
nick black df29cbaf1e [kitty] pass C=1 to inhibit cursor moves/scrolling from graphics #1733 3 years ago
nick black 0184ccc0b3 add visual_resize_internal to visual_interface API #1718 3 years ago
nick black 8d4d67c5e7
technically, ncplane_at_yx() change didn't affect ncplane_as_rgba() 3 years ago
nick black e6f226452d
fix erroneous comment in NEWS 3 years ago
nick black 507d2c8d8e
v2.3.2 3 years ago
nick black 46ddd37083
NEWS.md: memory leak fixes applied to all but OIIO backend 3 years ago
nick black c9e450bc27
add note to NEWS for 2.3.2 about 'none' memory leak 3 years ago
nick black 3ac445a328 enforce singleton across both direct and rendered mode #1694 3 years ago
Nick Black cd2b5de5fa
Panblitter ncplane_as_rgba() (#1697)
ncplane_as_rgba: genericize across blitters

ncplane_as_rgba() previously was implemented explicitly
in terms of NCBLIT_2x1. it now uses the `egcs` field of the
`blitset`. this supports NCBLIT_2x2 and NCBLIT_3x2 in
ncplane_rgba(). Closes #1490.
3 years ago
nick black d20a4d8104
ncdirect: restore colors properly following sgr #1703 3 years ago
nick black c4e2932c76 add ncdirect_supported_styles(), move SGR/SGR0/OC into escblock #1525 3 years ago
nick black f2b26723c9
document notcurses_cursor_yx() #1681 3 years ago
nick black d3a1a16ec1
mention ncvisual_from_rgba() fix in NEWS.md 3 years ago
nick black 6969652031
add ncinput_nomod_p() 3 years ago
nick black 739c96032d
v2.3.1 3 years ago
nick black 42f26fcb1e ncls: update to prep_image() maxy/maxx #1661 3 years ago
nick black d1e7adf410 add ncdirectf api #1659 3 years ago
nick black 014a88a09c
always enable 8bpc RGB for kitty, alacritty, and foot #1641 3 years ago
nick black 1a7c5172f4
add note about sprixel/fb relationship to NEWS.md 3 years ago
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 3 years ago
nick black 121f10a9c5
v2.1.7 3 years ago
nick black 57271d09ce
v2.1.6 3 years ago
nick black 45c389a709 document *_core_init() #1301 3 years ago
nick black 1631818784
rename notcurses-view to ncplayer #1299 3 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.
3 years ago