Commit Graph

361 Commits

Author SHA1 Message Date
nick black
d50792a899
more detail in NEWS for terminal queries #1751 2021-06-14 18:56:38 -04:00
nick black
0d7a5a5ef8 remove the majority of notcurses_check_pixel_support() calls #1469 2021-06-13 18:21:14 -04:00
nick black
cadd4aefee s/CELL_ALPHA_/NCCELL_ALPHA_/g 2021-06-13 18:21:14 -04:00
nick black
a290e3f741
NEWS: fix typos info: dump more unicode 2021-06-13 10:13:25 -04:00
nick black
160868d9e8
v2.3.4 2021-06-12 17:27:28 -04:00
nick black
0b72bec79d
add ncdirect_ascii_box(), use it in DefaultBox unit test 2021-06-12 17:20:37 -04:00
nick black
4ca1036da9
v2.3.3 2021-06-12 16:54:36 -04:00
nick black
d695a8206f
add ncdirect_detected_terminal() and notcurses_detected_terminal() #1759 2021-06-12 13:10:16 -04:00
nick black
21f3dbf72c
NEWS: note ncdirect_box() bugfix #1752 2021-06-12 10:24:09 -04:00
nick black
608943bb95 reference nc->margin when we want margins, not stdplane #1615 2021-06-11 20:35:46 -04:00
nick black
65071fff2d
add note about ncplane_move_yx fix for root planes #1753 2021-06-11 16:56:35 -04:00
nick black
9f4a578e72
factor out common unicode box sequences 2021-06-10 17:11:33 -04:00
nick black
cb178ac247
add simple_box() and heavy_box() forms 2021-06-10 17:04:29 -04:00
nick black
deea4ddf9c ncdirectf_geom: move to ncvisual_options #1746 2021-06-10 14:43:17 -04:00
nick black
c967028fbe ncplayer: add -n option for noninterpolative scaling #1738 2021-06-09 06:57:15 -04:00
nick black
59f4edd777 ncdirectf_render: accept an ncvisual_options #1738 2021-06-09 06:57:15 -04:00
nick black
6fcaad3c5d
generalize ncvisual_inflate() to ncvisual_resize_noninterpolative() #1738 2021-06-08 16:32:03 -04:00
nick black
863c1778aa kitty: cut alphas in half with NCVISUAL_OPTION_BLEND #1735 2021-06-08 13:05:36 -04:00
nick black
df29cbaf1e [kitty] pass C=1 to inhibit cursor moves/scrolling from graphics #1733 2021-06-08 13:05:36 -04:00
nick black
0184ccc0b3 add visual_resize_internal to visual_interface API #1718 2021-06-06 02:13:18 -04:00
nick black
8d4d67c5e7
technically, ncplane_at_yx() change didn't affect ncplane_as_rgba() 2021-06-03 03:05:31 -04:00
nick black
e6f226452d
fix erroneous comment in NEWS 2021-06-03 03:04:29 -04:00
nick black
507d2c8d8e
v2.3.2 2021-06-03 02:29:13 -04:00
nick black
46ddd37083
NEWS.md: memory leak fixes applied to all but OIIO backend 2021-06-03 01:49:28 -04:00
nick black
c9e450bc27
add note to NEWS for 2.3.2 about 'none' memory leak 2021-06-02 21:52:01 -04:00
nick black
3ac445a328 enforce singleton across both direct and rendered mode #1694 2021-06-01 17:44:34 -04:00
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.
2021-06-01 02:25:11 -04:00
nick black
d20a4d8104
ncdirect: restore colors properly following sgr #1703 2021-05-31 20:07:10 -04:00
nick black
c4e2932c76 add ncdirect_supported_styles(), move SGR/SGR0/OC into escblock #1525 2021-05-26 18:04:29 -04:00
nick black
f2b26723c9
document notcurses_cursor_yx() #1681 2021-05-22 23:07:11 -04:00
nick black
d3a1a16ec1
mention ncvisual_from_rgba() fix in NEWS.md 2021-05-22 20:51:35 -04:00
nick black
6969652031
add ncinput_nomod_p() 2021-05-21 20:06:36 -04:00
nick black
739c96032d
v2.3.1 2021-05-18 04:03:27 -04:00
nick black
42f26fcb1e ncls: update to prep_image() maxy/maxx #1661 2021-05-18 03:36:27 -04:00
nick black
d1e7adf410 add ncdirectf api #1659 2021-05-16 12:58:24 -04:00
nick black
014a88a09c
always enable 8bpc RGB for kitty, alacritty, and foot #1641 2021-05-14 06:02:06 -04:00
nick black
1a7c5172f4
add note about sprixel/fb relationship to NEWS.md 2021-05-14 01:45:20 -04:00
nick black
8bd73378cf
add NCSCALE_INFLATE 2021-05-12 13:07:23 -04:00
nick black
ea4c593455
v2.3.0 2021-05-09 18:54:22 -04:00
nick black
dc9db79100
v2.2.11 2021-05-08 18:25:13 -04:00
nick black
f080e1502b add ncplane_erase_region() 2021-05-08 16:57:33 -04:00
nick black
00962bb99f
add note about Requires.private to NEWS.md #1635 2021-05-08 15:39:52 -04:00
nick black
84c7aca04e
add ncblit_rgb_packed(), ncblit_rgb_loose() #1634 2021-05-07 17:34:02 -04:00
nick black
2d6bdd3b5b
v2.2.10 2021-05-05 05:18:57 -04:00
nick black
4f5a8480c0 document new option NCVISUAL_OPTION_CHILDPLANE #1603 2021-05-04 19:08:55 -04:00
nick black
923bc40516
v2.2.9 2021-05-03 02:51:04 -04:00
nick black
8e0173cce3
cell unit tests: use nccell_width() 2021-05-01 20:04:46 -04:00
nick black
3eb004b61d s/channels/ncchannels/g #1570 2021-04-29 01:32:08 -04:00
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.
2021-04-27 16:53:44 -04:00
nick black
e43a9955cd
channel_* functions -> ncchannel_* #1570 2021-04-27 14:10:41 -04:00
Nick Black
c8680255be
palette256 -> ncpalette #1570 (#1573)
everything prefixed with palette256 is now prefixed with ncpalette
2021-04-22 04:11:06 -04:00
nick black
f4aa419a31
add notcurses_canhalfblock()/notcurses_canquadrant() #1575 2021-04-22 00:10:55 -04:00
nick black
6c7b40debf
add stats for sprixel emissions/elisions #1563 2021-04-21 11:43:10 -04:00
nick black
d5b58d9f58
v2.2.8 2021-04-18 13:24:24 -04:00
nick black
eefc4fb91f
v2.2.7 2021-04-18 12:34:41 -04:00
nick black
6b7195a387 document new function ncvisual_inflate() #1546 2021-04-18 01:12:28 -04:00
nick black
32500239ac
cell_extract() -> nccell_extract() 2021-04-14 10:30:22 -04:00
Nick Black
e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
2021-04-14 06:42:14 -04:00
nick black
e017dcba89
v2.2.6 2021-04-12 05:01:58 -04:00
nick black
0c566cd74a [ncvisual] pipe transcolor through #1518 2021-04-10 12:02:58 -04:00
nick black
d504e972cc
cell_release -> nccell_release 2021-04-10 09:09:56 -04:00
nick black
cf3a6317aa export ncdirect_stream() 2021-04-10 04:41:14 -04:00
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()).
2021-04-10 04:04:02 -04:00
nick black
f294c6bb0b
add ncplane_pixelgeom() #1507 2021-04-10 00:34:38 -04:00
nick black
05082fc277
ncplane_as_rgba(), returns pixel geometry along with bitmap #1508 2021-04-08 04:12:11 -04:00
nick black
8c78b089e1
v2.2.5 2021-04-04 14:28:16 -04:00
nick black
57114c8005
[bitmaps] remove redundant PixelWipeBlocks test 2021-03-28 16:59:02 -04:00
nick black
78c8e70933 [planes] add NCPLANE_OPTION_MARGINALIZED #1472 2021-03-27 07:07:48 -04:00
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.
2021-03-27 02:31:51 -04:00
nick black
6105913d06 [planes] add NCPLANE_OPTION_VERALIGNED #1465 2021-03-26 04:18:15 -04:00
nick black
828cce634a [capabilites] remove redundant notcurses_canpixel() 2021-03-25 20:41:02 -04:00
nick black
852b0ad0ec
[NEWS] mention nctabbed for 2.2.4 2021-03-25 16:44:22 -04:00
nick black
f8b68947f3 [NEWS] mention NCVISUAL_OPTION_HORALIGNED #1443 2021-03-24 05:22:15 -04:00
nick black
33d408b4a3
[sixel] call sprite_sixel_init at proper time #1436 2021-03-22 07:30:17 -04:00
nick black
a6548fbcc8 [ncvisual] refuse to blit bitmaps to standard plane 2021-03-22 03:43:18 -04:00
nick black
f35e2eb982
notcurses_visual.3: link to sixel/kitty 2021-03-08 23:31:27 -05:00
nick black
bc84987af5
v2.2.3 2021-03-08 07:10:50 -05:00
nick black
4a203ef0a9
direct mode: optimize out redundant SETAF, nice 2021-02-28 09:08:47 -05:00
nick black
49ce0d1c57
mention SIGCONT along with SIGWINCH 2021-02-28 04:26:00 -05:00
nick black
100a89291b hide cell_{b,f}channel(), cell_set_{b,f}channel() 2021-02-27 19:03:42 -05:00
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.
2021-02-27 19:03:42 -05:00
nick black
e782287142 add NCBLIT_PIXEL to NEWS 2021-02-27 19:03:42 -05:00
nick black
fe8abbecc5 NEWS: mention nctree for 2.2.3 2021-02-24 22:23:01 -05:00
nick black
2221120543 add SIGILL to documented fatal signals #1357 2021-02-21 23:22:37 -05:00
nick black
c10f5a40ce
v2.2.2 2021-02-18 07:07:26 -05:00
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.
2021-02-18 01:37:30 -05:00
nick black
1b1e0b88be
ncplane_qrcode: drop blitter argument, update docs 2021-02-15 03:34:14 -05:00
nick black
be4a9154a8
v2.2.1 2021-02-09 19:34:03 -05:00
nick black
3cdf7160de
v2.2.0 2021-02-08 09:35:34 -05:00
nick black
6b126f4049
add notcurses_canbraille() capability test 2021-02-07 18:31:31 -05:00
nick black
54ca2249df
v2.1.8 2021-02-03 08:34:49 -05:00
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.
2021-02-03 00:18:10 -05:00
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.
2021-02-02 20:36:59 -05:00
nick black
7eafcfe598
rename notcurses-tetris -> nctetris 2021-01-21 03:51:12 -05:00
nick black
121f10a9c5
v2.1.7 2021-01-21 03:21:31 -05:00
nick black
57271d09ce
v2.1.6 2021-01-21 02:44:00 -05:00
nick black
45c389a709 document *_core_init() #1301 2021-01-19 23:09:22 -05:00
nick black
1631818784
rename notcurses-view to ncplayer #1299 2021-01-18 14:22:54 -05:00
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.
2021-01-18 14:10:04 -05:00
nick black
3ecdde74d0
v2.1.5 2021-01-15 05:14:07 -05:00