Commit Graph

6015 Commits

Author SHA1 Message Date
joseLuís
f1f97aeee7 [rust] continue solving bugs for #1339
also update `example-1832.rs` & run rustfmt
2021-07-06 14:19:54 +02:00
nick black
bfd069a755
add asterisk sequences to ncseqs.h 2021-07-06 04:40:10 -04:00
nick black
5009a25721
stop warning on truecolor but no ccc 2021-07-06 04:29:25 -04:00
nick black
39fc2553b1
rxvt and screen both support pixels in TIOCGWINSZ 2021-07-06 03:54:29 -04:00
nick black
8365764b43
even out alignment in ncseqs.h 2021-07-06 03:11:02 -04:00
nick black
d38c15302a
notcurses-info: add sub+superscripts 2021-07-06 02:01:38 -04:00
nick black
b41928833f
replace fprintf with ncfputc 2021-07-06 01:39:22 -04:00
nick black
e7ac7ab14b [kitty] C=1 needs be emitted with the presentation, not load #1865 2021-07-06 01:35:07 -04:00
nick black
afd738a977 direct: write sprixels with posix i/o to work around blocking 2021-07-06 01:35:07 -04:00
nick black
0b794bba64 direct mode: work with separate load+display kitty #1865 2021-07-06 01:35:07 -04:00
nick black
56433a1a7f [kitty] free and release sprixel on commit to destroy #1890 2021-07-06 01:35:07 -04:00
nick black
2e7079a69e [kitty] silence present command #1865 2021-07-06 01:35:07 -04:00
nick black
9a53379d36 [kitty] keep display distinct from draw #1865 2021-07-06 01:35:07 -04:00
nick black
3f8dcfa357 kitty: separate out commit from draw #1865 2021-07-06 01:35:07 -04:00
nick black
3608d6a2d6 [kitty] pull remove out of destroy, rename destroy scrub #1865 2021-07-06 01:35:07 -04:00
nick black
3763739b9f
direct mode: write sprixel with posix i/o for strength 2021-07-05 23:56:49 -04:00
nick black
00e28cc569
complete ncplane_cursor_move_yx() documentation 2021-07-05 23:42:51 -04:00
nick black
aa7b46f659
NEWS: mention falsehood in documentation 2021-07-05 23:41:01 -04:00
nick black
43f0a2e5c8
remove false comments on ncplane_move_yx() 2021-07-05 23:39:42 -04:00
nick black
212da290ae Create mstreamfp before registering signal handlers
We use mstreamfp in notcurses_stop_minimal(), so we can't
register that function as a fatal signal handler until
we've opened mstreamfp. Move it before the registration.
Eliminates a coredump when we ctrl+c during init.
2021-07-05 21:25:12 -04:00
nick black
4a3e536c66
notcurses-info: completely shade lower right 2021-07-05 12:39:48 -04:00
nick black
32ade77dd5
more sequences, more notcures-info 2021-07-05 12:01:22 -04:00
nick black
88cccb4d2a
notcurses-info: colorize box block 2021-07-05 10:57:35 -04:00
nick black
e915724b9f
utf8_codepoint_length: implement Corrigendum#1
Dmitry Sapozhnikov pointed out that I was admitting
illegal first bytes; I was also just plain wrong.
Bring this up to sync with Corrigendum #1.
2021-07-04 15:54:17 -04:00
nick black
29f1acc479
bulk up scrolling unit test #1649 2021-07-04 14:02:45 -04:00
nick black
8df91e35a9
unit test for virtual cursor on scrolling plane #1649 2021-07-04 13:55:30 -04:00
nick black
0941efbea5
unit tests for ncplane_moverel() 2021-07-04 13:50:19 -04:00
nick black
cd80b70594
add ncplane_moverel(), no unit tests though =[ #1881 2021-07-04 11:15:45 -04:00
nick black
f1202df541
document ncplane_cursor_move_yx better #1882 2021-07-04 11:05:31 -04:00
nick black
49cf9f35ac
unicode: define more cyclic sequences 2021-07-04 11:00:20 -04:00
nick black
da3f485ace
notcurses-info: add many triangles 2021-07-04 10:51:16 -04:00
nick black
8dc65b6db1 notcurses-info: always emit newline #1837 2021-07-04 11:25:20 -03:00
nick black
669cf758df
locate_cursor_early: fix compilation 2021-07-04 09:25:24 -04:00
nick black
e870e12285
locate_cursor_early: require ttyfd #1880 2021-07-04 09:24:13 -04:00
nick black
acc66372b5
add utf8_codepoint_length() #1871 2021-07-04 09:11:25 -04:00
nick black
70b8bba715
Merge branch 'master' of github.com:dankamongmen/notcurses 2021-07-04 08:49:32 -04:00
nick black
d7aac5461a reacquire cursor following init banner
when using NCOPTION_PRESERVE_CURSOR, we want to reacquire
the true cursor position after printing the init banner,
rather than trying to figure out how many lines it made
us scroll, and keeping that up to date. this improves the
notcurses-info output on freebsd, where the compiler line
was occupying more than one row. closes #1880.
2021-07-04 09:48:00 -03:00
nick black
50a7996b4f
notcurses_detected_terminal: use termdesc_longterm() 2021-07-04 07:01:50 -04:00
nick black
5451ecd890
return version in ncdirect_detected_terminal() 2021-07-04 06:37:34 -04:00
nick black
bc213921be
interrogate_terminfo: placeholders for cursor
always get the cursor location from query responses,
so that we load u7 into the escape table even though
it wasn't found in terminfo. this is needed on freebsd,
where termcap doesn't seem to have u7 in it.
2021-07-04 06:23:47 -04:00
nick black
4ed41259c9
don't emit smkx twice, flatten all initial writes 2021-07-04 05:30:06 -04:00
joseLuís
f401d85733 [rust] update function-summary data & minor fix 2021-07-04 11:23:04 +02:00
nick black
488a36eaf5
ncplayer: remove meaningless notcurses_check_pixel_support() call 2021-07-04 05:14:50 -04:00
nick black
dc02a8f04b
notcurses_stop_minimal: use reliable I/O
fflush(), so far as i can tell, cannot be reliably used
in glibc. after it fails once, subsequent calls return 0
and do not set errno -- only the persistent ferror() serves
to indicate that flushing is not going on. instead, write
into the render state's memstream, and then use reliable
blocking_write() to dump it to stdout. closes #1872.
2021-07-04 05:09:17 -04:00
nick black
ed8c369d4e on pile change, clear old sprixels #1875 2021-07-04 03:32:20 -04:00
nick black
9d27bf1869
remove meaningless notcurses_check_pixel_supprot() from ncplayer 2021-07-04 01:30:44 -04:00
nick black
1189891167
v2.3.8 2021-07-04 01:14:12 -04:00
nick black
588f8d3789
drop signals at the end of reset_term_attributes() #1872 2021-07-04 00:05:51 -04:00
nick black
205a8bd764
faster nccell_width()
nccell_width() ought simply consult the nccell's width
field to get a column count (it was written before the
rearrangement of nccell). do so. fix up the macros
CELL_CHAR_INITIALIZER and CELL_INITIALIZER to assign a
width of 1 for non-printing characters, matching the
behavior of utf8_egc_len() on whitespace. instead of
hard-coding the logic in ncplane_put() for multicolumn
glyphs, call nccell_wide_right_p() and wide_left_p().
use nccell_width() in ncplane_putc_yx(), fixing it for
glyphs of more than 2 columns.
2021-07-03 22:38:48 -04:00
nick black
505f38956d
Fade unit test: use CELL_CHAR_INITIALIZER 2021-07-03 21:52:32 -04:00