8524 Commits

Author SHA1 Message Date
nick black
4e4a75bc52 notcurses_metric: corrections, add note to BUGS 2024-06-05 10:11:56 -04:00
nick black
b43a905a2a nctree_add_internal: kill set-but-unused depth 2024-06-05 09:59:14 -04:00
nick black
a5d3a793e6 [macos] export PKG_CONFIG_PATH for cmake 2024-06-05 09:59:14 -04:00
nick black
d31dc93b26
note encoding match changes in NEWS 2024-06-04 23:47:54 -04:00
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
2024-06-04 23:44:39 -04:00
nick black
bc4dc23035
ncchannel_alpha(): return uint32_t (not an ABI change) 2024-04-09 23:31:36 -04:00
nick black
0e389967e5
sixel: free meta on error paths 2024-04-09 23:31:02 -04:00
nick black
adc7313a4d
tabbed: eliminate double-free on error path 2024-03-25 00:46:47 -04:00
nick black
34b6cc12ec
ncplane_resize: factor out ncplane_resize_internal_check() 2024-03-24 23:51:00 -04:00
nick black
503e9fb3c5
release-checklist: escape semicolon in shell example 2024-03-23 06:10:35 -04:00
nick black
97508498db
init_lang: remove dead code 2024-03-23 06:09:16 -04:00
nick black
1586fe4c56
tfman: eliminate unnecessary write 2024-03-23 05:47:54 -04:00
nick black
83a0ca48bb
tfman: always initialize success 2024-03-23 05:45:48 -04:00
nick black
1995749c4b
eliminate clang-tidy memory leak bitchery 2024-03-23 05:08:21 -04:00
nick black
87782f340a
query_rgb: tigetflag() returns 1 on success 2024-03-08 09:21:48 -05:00
nick black
9b52619936 drone: use official debian layer 2024-03-08 05:39:32 -05:00
nick black
441d66a063
check LIBAVUTIL_VERSION_MAJOR against 59 for pkt_duration 2024-03-08 05:38:50 -05:00
nick black
bed402adf9
ffmpeg: use pkt_duration when it's available #2688 2024-03-08 02:33:08 -05:00
nick black
9d4c9e0083
ffmpeg: replace deprecated pkt_duration with duration #2688 2024-03-07 23:57:55 -05:00
nick black
fb7b132551
CMake: don't run rgbbg unless we built it 2024-03-02 21:17:43 -05:00
nick black
d88f40b836
CMake: USE_CXX oughtn't restrict NOTCURSES_HEADERS 2024-03-01 08:13:49 -05:00
nick black
cb1244d3d4
ffmpeg: remove call to deprecated avcodec_close() 2024-03-01 07:57:44 -05:00
Nat!
2e2cc8121c * size_t overflow check for cell array
* use calloc to gain mucho speed for huge dimensions
2024-03-01 07:23:34 -05:00
Nat!
ded1195977 * remove cpp headers and other c++ support file from installation if USE_CXX is not set 2024-02-29 01:30:44 +01:00
nick black
fdd33449f1
ncplane_new_internal: don't check for negative rows/cols, use unsigned spec #2763 2024-02-27 17:31:33 -05:00
nick black
43c81ed944
update COPYRIGHT blergh 2024-02-13 05:49:35 -05:00
nick black
4ad0236a6e
usage: provide updated ncchannels_reverse() definition (#2757) 2024-02-12 07:53:15 -05:00
nick black
051a1b8bbd
[c++] Plane.hh: fix set_bg_rgb8() #2748 2024-01-31 00:19:58 -05:00
nick black
d0ae404152
channels_blend(): bow to clang14 -Wbitwise-instead-of-logical overlords 2024-01-09 22:14:49 -05:00
nick black
a2674d98ee
kill comment obsoleted by a66c1e95f80d184b87d212c9939a787f88dd36e3 2024-01-09 22:14:14 -05:00
nick black
d3d7a90495
ffmpeg: remove unused frame counter 2024-01-09 22:13:58 -05:00
Tobias Wood
d9cc551f5a
Fix a bitwise instead of logical warning 2024-01-09 22:13:11 -05:00
nick black
c19a715773
demo: use full zero initializers (closes #2739) 2023-12-19 22:17:48 -05:00
Tobias Wood
481fa39678 Added find_path for unigbrk.h 2023-11-15 22:55:11 -05:00
barracuda156
e8b4c7958a inttypes.h needs __STDC_FORMAT_MACROS defined 2023-08-06 04:37:48 -04:00
Dheepak Krishnamurthy
442cfea046 Update README.md to include link to Julia bindings 2023-04-22 00:46:12 -04:00
nick black
dd31ba729a
notcurses_capabilities.3: formatting 2023-04-19 17:00:21 -04:00
nick black
0ac1251435
notcurses_capabilities.3: typo 2023-04-19 16:58:51 -04:00
nick black
c81a55fa29
TERMINALS.md: recommented? 2023-04-13 06:01:46 -04:00
Dheepak Krishnamurthy
32eba71d31 Fix typo in notcurses.h 2023-04-11 17:56:25 -04:00
Michael Bradley, Jr
5d6f7abde9 use correct codepoints for NCCHESSWHITE 2023-04-04 13:15:31 -04:00
nick black
bb4a5d09ac
remove deps rendered unnecessary by libavdevice-dev 2023-03-28 21:41:58 -04:00
Cameron Tenny
356c60a6ed Update builders for libavdevice, pkg-config; add note about ffmpeg device support 2023-03-28 21:40:02 -04:00
Cameron Tenny
04470f9532 Add dependency on libavdevice when building with ffmpeg support, register in ffmpeg_init 2023-03-28 21:40:02 -04:00
nick black
fd4b2d9db7
notcurses.h: remove duplicate definition of notcurses_stdplane{_const} #2710 2023-03-21 00:09:06 -04:00
nick black
3c7dcd951e
add link to michael s. bradley jr.'s nim wrapper #2708 2023-03-04 20:21:05 -05:00
nick black
0f4cca9c55
check outstanding kernel patch into doc/ so it's not forgotten 2023-02-25 16:17:29 -05: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
nick black
2f4fb5514b
notcurses_output: properly escape tab and newline 2023-02-20 04:35:06 -05:00
nick black
29a5dc2295
use _FORTIFY_SOURCE level 3 #2703 2023-02-07 02:56:34 -05:00