Cameron Tenny
04470f9532
Add dependency on libavdevice when building with ffmpeg support, register in ffmpeg_init
2023-03-28 21:40:02 -04:00
Dan Bungert
8f972a3e0e
metric: fix test on armhf/glibc 2.37
...
In the metric test is a call to ncnmetric, which eventually calls
snprintf. Along the way is a size that is much larger than the actual
bufsize, but it shouldn't matter as the buffer size exceeds what we
print (or at least what is expected).
In testing with glibc 2.37 on armhf on Ubuntu Lunar, I found that these
metric tests can fail with some unexpected truncation of the values.
For example, in the following check,
```
impericize_ncmetric(0, 1, buf, 0, 1000, '\0');
CHECK(!strcmp("0.00", buf));
```
buf would actually be "0.0".
Using a more realistic buffer size produces a working result.
2023-02-22 23:05:47 -05:00
Jeroen Domburg
4332f8a249
notcurses-input: also show effective text if different from ID/utf8
2023-01-23 10:25:32 -05:00
Jeroen Domburg
243bdc31ee
Automaton creation: do not try to recurse into every single digit on numeric value when it is not needed
2023-01-23 10:25:32 -05:00
Jeroen Domburg
b0f19f9f29
Do not be lazy, make amount of max text code points into a define
2023-01-22 22:56:27 -05:00
Jeroen Domburg
3512f9e812
Fix misunderstanding in Kitty kbd proto docs
2023-01-22 22:56:27 -05:00
Jeroen Domburg
d8cb625b9a
Add 'effective utf8' field to ncinput struct. This field will contain the utf8 emitted by a key with all modifiers taken into account.
2023-01-22 22:56:27 -05:00
nick black
eac79ee680
automaton: s/thought/though/g
2023-01-20 05:12:34 -05:00
nick black
90135203e8
debug: loglevel ought be ncloglevel_e
2023-01-19 22:31:25 -05:00
nick black
d29f364f62
ncvisual_create: error-check malloc #2691
2022-12-17 14:10:51 -05:00
nick black
09f7b717ac
[ncwidth] error-check printfs #2691
2022-12-17 14:10:34 -05:00
nick black
5c34ff4735
[tests] add FamilyAbove for infinite loop found by drewt #2687
2022-12-10 05:13:42 -05:00
Drew Thoreson
f6d396e8b4
Fix infinite loop in ncplane_move_family_*
...
Fix bugs that occur when moving a plane-family up in the z-order with
ncplane_move_family_above, or down in the z-order with
ncplane_move_family_below.
2022-12-10 05:10:41 -05:00
nick black
7651cde998
workarounds for busted doctest 2.4.9 #2673
2022-10-04 04:59:43 -04:00
Christian Parpart
9f0a7bf095
Fixes DECSDM interpretation for Contour.
2022-09-25 08:41:21 -04:00
Tim Gates
ab8590d7b3
docs: Fix a few typos
...
There are small typos in:
- src/demo/fission.c
- src/tests/wide.cpp
Fixes:
- Should read `obliterated` rather than `oblitrated`.
- Should read `range` rather than `reange`.
2022-06-28 00:42:24 -04:00
Christian Parpart
d76316cc60
Add XT{PUSH,POP}COLORS support to Contour heuristic.
2022-06-09 16:39:57 -04:00
Dmitry Atamanov
7eb51cb456
Add support g/Home keys to tfman
2022-05-25 19:46:07 -04:00
Daniel Davis
142d3ab4e9
Fix tfman help msg version flag
...
Should be uppercase
2022-05-24 15:23:10 -04:00
nick black
2316c7e646
deconstify functions which write to pool
...
several functions appear to have recently been marked
as accepting a const ncplane, despite potentially writing
into that plane's egcpool. in such cases, the ncplane
argument cannot be marked constant, as indicated by
compiler warnings. all have been rectified.
2022-05-09 21:17:58 -04:00
joseLuís
c3ace47939
use const references in several fns; fix #2658
2022-04-30 18:58:28 +02:00
nick black
c8882178ed
terminate potential escape on incomplete buffer #2647
2022-04-06 06:05:26 -04:00
nick black
dcf3e10965
[sixel] drop unused auxvec_idx
2022-04-04 05:26:17 -04:00
Christian Parpart
d046b2c406
Adds ucurl heuristic to Contour terminal, similarily to how it's done on other terminals.
2022-03-27 09:01:20 -04:00
Nick Black
ec1ef7200b
use ffmpeg-free-compatible video in all tests #2631
2022-03-08 04:14:40 -05:00
nick black
8cd54b7932
[sixel] fix unit tests on big-endian machines
2022-02-20 19:41:12 -05:00
nick black
066dde8e33
[scroll_down] kill naked diagnostic
2022-02-19 06:32:52 -05:00
nick black
15f0ac2522
[render] scroll after display for sensible scrollback #2557
2022-02-19 04:58:14 -05:00
nick black
7db7b0150a
[enqueue_to_workers] only increment wq->writeto when we write #2627
2022-02-17 09:49:37 -05:00
nick black
a35d42b0e4
ncplane_scrollup: call notcurses_render() when appropriate #2557
2022-02-17 04:17:53 -05:00
nick black
184666170c
[ncplane_put] hold off on render until we've written the output #2414
2022-02-15 18:52:39 -05:00
nick black
ad76543ef1
[scrolling] call notcurses_render() from scroll_down() #2414
2022-02-15 18:52:39 -05:00
nick black
37fe78917c
[sixel_blit] typo in comment
2022-02-15 18:52:39 -05:00
nick black
10c23d6dfd
remove quantanal; it's been obsoleted
2022-02-15 18:52:39 -05:00
nick black
07b808588b
simple ncvisual_from_sixel() unit test
2022-02-15 18:52:39 -05:00
nick black
bec97315ad
[tabs] autogrow to the right to next tabstop #1233
2022-02-11 05:52:16 -05:00
nick black
3681a95b3c
[tabs] update plane+cell unit tests #1233
2022-02-11 05:52:16 -05:00
nick black
78cc44a1bf
[tabs] get all unit tests working #1233
2022-02-11 05:52:16 -05:00
nick black
21f68bf57c
[tabs] get PutcTaB unit test working #1233
2022-02-11 05:52:16 -05:00
nick black
7c8cf1e6e8
[ncplane_put] admit tab characters #1233
2022-02-11 05:52:16 -05:00
nick black
b326d43885
[tabs] remove obsolete FIXME
2022-02-11 05:52:16 -05:00
nick black
d0d9a0724b
[pool_blit_direct] admit tab characters #1233
2022-02-11 05:52:16 -05:00
nick black
25b94c021d
more TaB unit tests #1233
2022-02-11 05:52:16 -05:00
nick black
6bf37089a1
add unit test for putchar on tab #1233
2022-02-11 05:52:16 -05:00
nick black
28756a004f
[ncplane_put] admit tab characters #1233
2022-02-11 05:52:16 -05:00
nick black
db2f6c06b5
is_control_egc: admit NUL
2022-02-11 05:52:16 -05:00
nick black
a5e9928621
[ncmenu] if no item is select, next/prev is a no-op
2022-02-11 04:08:26 -05:00
nick black
99528ba6d0
restore: pull from successive columns #2603
2022-02-09 16:20:52 -05:00
nick black
b93e63656e
[sixels] handle direct (engineless) case
2022-02-09 14:51:11 -05:00
Alex Samuel
ceb4a0e948
(Failing) test case for UNALIGNED puttext.
2022-02-09 14:44:40 -05:00