nick black
7361683d3b
deny control characters in cells and plane emissions #1840
2021-06-27 03:16:24 -04:00
nick black
aa716d6814
add NCSTYLE_BLINK back to documentation #1818
2021-06-26 01:16:02 -04:00
nick black
166212f234
document NCOPTION_PRESERVE_CURSOR #1823
2021-06-25 00:21:08 -04:00
nick black
9d7f07771b
GTFO NCSTYLE_DIM, NCSTYLE_REVERSE #1818
2021-06-24 02:13:57 -04:00
nick black
481d539092
v2.3.6
2021-06-23 22:35:19 -04:00
nick black
a14a5271ac
v2.3.5
2021-06-23 13:07:42 -04:00
nick black
041f97371f
add stat for ASUs and send them #1582
2021-06-22 16:30:58 -04:00
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 .
2021-06-22 01:17:55 -04:00
nick black
e5662ac506
add and document sprixelbytes stat #1801
2021-06-20 08:51:23 -04:00
nick black
d360cc1d1e
ncvisual_from_rgb_{packed, loose}() #1767
2021-06-19 05:14:09 -04:00
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 .
2021-06-19 03:21:05 -04:00
nick black
048f2f5e77
handle nointerpolate in transparent sexblitter cell #1763
2021-06-19 01:12:49 -04:00
nick black
c9a338e0fd
add ncdirect_canget_cursor() #1790
2021-06-18 14:24:35 -04:00
nick black
476ebe5533
tie warning about no multimedia to linking with null implementation #1771
2021-06-15 23:39:44 -04:00
nick black
3cf971ac67
update ncvisual_plane.3 for ncplane_as_rgba() #1441
2021-06-15 22:33:20 -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
160868d9e8
v2.3.4
2021-06-12 17:27:28 -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
889d985c85
notcurses_visual.3: clarify parameters #1615
2021-06-11 17:28:27 -04:00
nick black
deea4ddf9c
ncdirectf_geom: move to ncvisual_options #1746
2021-06-10 14:43:17 -04:00
nick black
5426e153f7
ncdirectf_render: make ncvisual_options const, thanks @joseluis #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
3aa287b9d4
notcurses.3: make explicit that rasterizing clears the area #1732
2021-06-08 14:55:40 -04:00
nick black
d730abb6b0
notcurses_render: purge falsehood #1732
2021-06-08 13:05:36 -04:00
nick black
7d6c03fe6a
notcurses_visual.3: document BLEND interactions with PIXEL #1735
2021-06-08 13:05:36 -04:00
nick black
a6433caeaa
add NCVISUAL_OPTION_NOINTERPOLATE #1576
2021-06-08 13:05:36 -04:00
nick black
ea13e25cf4
kill NCSCALE_INFLATE #1576
2021-06-06 15:14:35 -04:00
nick black
bf62f5ac3f
notcurses_visual.3: document what functionality requires a multimedia backend #1718
2021-06-06 00:22:30 -04:00
nick black
507d2c8d8e
v2.3.2
2021-06-03 02:29:13 -04:00
nick black
d170e6e7a2
man pages: document that only one context can be active at a time #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
50693fb812
add a section on hardware cursor to notcurses_init.3 #1681
2021-05-22 23:19:58 -04:00
nick black
f2b26723c9
document notcurses_cursor_yx() #1681
2021-05-22 23:07:11 -04:00
nick black
07ea230476
notcurses.3: proper pandoc syntax for FILE*
2021-05-22 17:21:42 -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
c42fab1564
implement ncdirectf passthroughs #1659
2021-05-16 12:58:24 -04:00
nick black
d1e7adf410
add ncdirectf api #1659
2021-05-16 12:58:24 -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
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
55837bcb55
add nccell_width() to avoid calling utf8_egc_len externally
2021-05-01 20:04:26 -04:00
nick black
5947f3d4d2
experimental threaded xray #1607
2021-04-30 16:44:36 -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
2c5d938cbd
Paint sprixels bottom-to-top ( #1589 )
...
* Paint sprixels in order, bottom-to-top
We don't want to have to track sprixel order whenever someone
moves an ncplane, so just keep a list growing backwards as we
pass top-to-bottom in notcurses_render_internal(). Each time
we hit a sprixel plane, splice it out of the sprixel list, and
add it to the front of our temporary list. When we hit the
bottom, stick this temporary list on the end of our existing
list (any such planes are to be deleted, which comes before
drawing). Closes #1575 .
* reorder collected sprixellist; solves kitty but breaks sixel =/ #1575
* remove debugging cruft
* [rust] fix up mergedown mutability
2021-04-24 13:08:09 -04:00
nick black
5a72383cb0
reject sprixels larger than plane, add unit test #1572
2021-04-24 04:41:23 -04:00
nick black
cc73811dd4
sprixelated planes may be resized after all #1572
2021-04-24 03:46:19 -04:00
nick black
cc657bbe35
notcurses_plane(3): document sprixelated effects #1585
2021-04-24 02:38:30 -04:00
nick black
23ef5313e3
document pixel blitting vis-a-vis planes #1585 #1572
2021-04-24 02:28:23 -04:00
nick black
68db5d5df6
notcurses(3) add paragraph on visuals #1585
2021-04-23 11:22:51 -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
8c6cd6a630
Further work on opacity optimizations ( #1549 )
...
* [bitmap] on move, clear old OPAQUE cells #1527
* update ncvisual_blitter_geom() documentation #1547
* replace some ncvisual_blitter_geom with NCVISUAL_OPTION_VERALIGNED
* [normal] replace ncvisual_blitter_geom with NCVISUAL_OPTION_VERALIGNED
* [intro] use ncvisual_blitter_geom() correctly #1547
* ncvisual_blitter_geom: only set *blitter on success
2021-04-17 23:11:11 -04:00
nick black
7ad5219fa2
convert another crop of cell_ to nccell_ #1532
2021-04-15 22:20:16 -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
ff76dba6ed
cell_strdup -> nccell_strdup
2021-04-10 09:21:52 -04:00
nick black
0fc5f7835d
[docs] cell_release -> nccell_release
2021-04-10 09:11:04 -04:00
nick black
cf3a6317aa
export ncdirect_stream()
2021-04-10 04:41:14 -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
9546b7e914
move logo to doc/ from data/ to keep install simple
2021-04-03 21:26:04 -04:00
nick black
b6a9b59f9d
notcurses_plane.3: add BUGS about bitmap graphics and ncplane_at_yx()
2021-04-01 11:26:23 -04:00
nick black
b92991e57b
[visual] allow NCBLIT_PIXEL in ascii mode
2021-03-28 19:40:21 -04:00
nick black
57114c8005
[bitmaps] remove redundant PixelWipeBlocks test
2021-03-28 16:59:02 -04:00
nick black
c87992c452
[ncvisual] fix NCVISUAL_OPTION_VERALIGNED definition
2021-03-28 11:16:10 -04:00
nick black
50df69ab31
[planes] implement MARGINALIZED in ncplane_create() #1472
2021-03-27 07:07:48 -04:00
nick black
78c8e70933
[planes] add NCPLANE_OPTION_MARGINALIZED #1472
2021-03-27 07:07:48 -04:00
nick black
6105913d06
[planes] add NCPLANE_OPTION_VERALIGNED #1465
2021-03-26 04:18:15 -04:00
nick black
f714337fe1
[visual] NCVISUAL_OPTION_HORALIGNED for cell blitters #1443
2021-03-25 20:41:02 -04:00
nick black
033ae7f93e
[capabilities] eradicate notcurses_canpixel()
2021-03-25 20:41:02 -04:00
nick black
828cce634a
[capabilites] remove redundant notcurses_canpixel()
2021-03-25 20:41:02 -04:00
MasFlam
c677a4fd8a
Add the nctabbed widget ( #1431 )
...
Tabs for the people!
fixes #986
2021-03-24 17:27:29 -04:00
nick black
a27fc0e3f7
notcurses_fade.3: break up typedef across lines
2021-03-24 05:22:15 -04:00
nick black
2cf0f06562
[visual] add OPTION_HORALIGNED #1443
2021-03-24 05:22:15 -04:00
nick black
3c0a765599
notcurses_render.3: render a pile, not planes
2021-03-23 16:13:06 -04:00
nick black
33d408b4a3
[sixel] call sprite_sixel_init at proper time #1436
2021-03-22 07:30:17 -04:00
nick black
7b61822a7e
notcurses.3.md: add notcurses_tree reference
2021-03-22 05:08:32 -04:00
nick black
a6548fbcc8
[ncvisual] refuse to blit bitmaps to standard plane
2021-03-22 03:43:18 -04:00
nick black
66e545f160
[pixel] fill out only through the plane #1391
2021-03-16 19:24:39 -04:00
nick black
70059297c0
notcurses_direct.3: add image render+raster to docs
2021-03-14 23:16:29 -04:00
nick black
04ad933a4b
ncplayer: don't try to drive four/eight #1406
2021-03-14 03:49:18 -04:00