Commit Graph

5666 Commits (master)

Author SHA1 Message Date
nick black f21c3be67a ncsixel_as_rgba: move to STATE_WANT_DATA following '-' 4 days ago
nick black 50a81df822 LoadBiggerSixel unit test for #2787 4 days ago
nick black aeb6bca35a
ncsixel_as_rgba: fix processing following '$'
waveplate pointed out that we needed to move to
STATE_WANT_DATA rather than STATE_WANT_HASH following
a '$' in sixel text. this was breaking ncsixel_as_rgba()
for larger sixels, for which we now have a unit test.

Closes #2784
2 weeks ago
nick black 87ff6fb048
ncvisual_from_*(): check geometries for validity 2 weeks ago
nick black 21429dacc2
tester: add LoadBigSixel() from waveplate #2784 2 weeks ago
nick black 0f3a737a3c
tester: reject empty argument for -l 2 weeks ago
nick black 498777db4c
tester: fix handling of -l arg 2 weeks ago
nick black b41af4e192 use encoding_us_utf8() for ncdirect 3 weeks ago
nick black 4e4a75bc52 notcurses_metric: corrections, add note to BUGS 3 weeks ago
nick black b43a905a2a nctree_add_internal: kill set-but-unused depth 3 weeks ago
nick black 9845b5bb54 introduce encoding_is_utf8() internal
apparently _nl_normalize_charset() of glibc removes
everything but alnums, and converts to lowercase.
replace strcmp() against "UTF-8" with encoding_is_utf8(),
which matches this behavior, and supports the optional
"cs" ("character set") prefix.

Closes #2780
3 weeks ago
nick black 0e389967e5
sixel: free meta on error paths 3 months ago
nick black adc7313a4d
tabbed: eliminate double-free on error path 3 months ago
nick black 34b6cc12ec
ncplane_resize: factor out ncplane_resize_internal_check() 3 months ago
nick black 97508498db
init_lang: remove dead code 3 months ago
nick black 1586fe4c56
tfman: eliminate unnecessary write 3 months ago
nick black 83a0ca48bb
tfman: always initialize success 3 months ago
nick black 1995749c4b
eliminate clang-tidy memory leak bitchery 3 months ago
nick black 87782f340a
query_rgb: tigetflag() returns 1 on success 4 months ago
nick black 441d66a063
check LIBAVUTIL_VERSION_MAJOR against 59 for pkt_duration 4 months ago
nick black bed402adf9
ffmpeg: use pkt_duration when it's available #2688 4 months ago
nick black 9d4c9e0083
ffmpeg: replace deprecated pkt_duration with duration #2688 4 months ago
nick black cb1244d3d4
ffmpeg: remove call to deprecated avcodec_close() 4 months ago
Nat! 2e2cc8121c * size_t overflow check for cell array
* use calloc to gain mucho speed for huge dimensions
4 months ago
nick black fdd33449f1
ncplane_new_internal: don't check for negative rows/cols, use unsigned spec #2763 4 months ago
nick black d0ae404152
channels_blend(): bow to clang14 -Wbitwise-instead-of-logical overlords 6 months ago
nick black d3d7a90495
ffmpeg: remove unused frame counter 6 months ago
nick black c19a715773
demo: use full zero initializers (closes #2739) 6 months ago
barracuda156 e8b4c7958a inttypes.h needs __STDC_FORMAT_MACROS defined 11 months ago
Cameron Tenny 04470f9532 Add dependency on libavdevice when building with ffmpeg support, register in ffmpeg_init 1 year ago
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.
1 year ago
Jeroen Domburg 4332f8a249 notcurses-input: also show effective text if different from ID/utf8 1 year ago
Jeroen Domburg 243bdc31ee Automaton creation: do not try to recurse into every single digit on numeric value when it is not needed 1 year ago
Jeroen Domburg b0f19f9f29 Do not be lazy, make amount of max text code points into a define 1 year ago
Jeroen Domburg 3512f9e812 Fix misunderstanding in Kitty kbd proto docs 1 year ago
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. 1 year ago
nick black eac79ee680
automaton: s/thought/though/g 1 year ago
nick black 90135203e8
debug: loglevel ought be ncloglevel_e 1 year ago
nick black d29f364f62
ncvisual_create: error-check malloc #2691 2 years ago
nick black 09f7b717ac
[ncwidth] error-check printfs #2691 2 years ago
nick black 5c34ff4735 [tests] add FamilyAbove for infinite loop found by drewt #2687 2 years ago
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.
2 years ago
nick black 7651cde998 workarounds for busted doctest 2.4.9 #2673 2 years ago
Christian Parpart 9f0a7bf095 Fixes DECSDM interpretation for Contour. 2 years ago
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`.
2 years ago
Christian Parpart d76316cc60 Add XT{PUSH,POP}COLORS support to Contour heuristic. 2 years ago
Dmitry Atamanov 7eb51cb456 Add support g/Home keys to tfman 2 years ago
Daniel Davis 142d3ab4e9 Fix tfman help msg version flag
Should be uppercase
2 years ago
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.
2 years ago
joseLuís c3ace47939 use const references in several fns; fix #2658 2 years ago