Commit Graph

4286 Commits

Author SHA1 Message Date
nick black
2221120543 add SIGILL to documented fatal signals #1357 2021-02-21 23:22:37 -05:00
nick black
8a7ff8a317 signals: restore them on exit #1357 2021-02-21 23:22:37 -05:00
nick black
211f180c56
README: provide the Focal PPA 2021-02-21 21:05:43 -05:00
nick black
cd10321819
zoo: clean up central plane #1353 2021-02-21 16:26:32 -05:00
nick black
c30c7a5c23
sex_solver: only need 32 glyphs #1354 2021-02-21 16:22:54 -05:00
nick black
ed3075414e
zoo demo: use nul glyph as base cell #1353 2021-02-21 16:22:54 -05:00
Ben Spencer
9625450848 rust: fix a couple of doc comments 2021-02-21 15:11:21 -05:00
nick black
2190d3eaf0
extract init_banner_warnings()
factor init_banner_warnings() out of init_banner().
check the output FILE for ttyness, and only emit control
sequences when it is indeed a tty. this eliminates some
control sequences that were being dumped when stderr was
redirected.
2021-02-21 12:36:20 -05:00
nick black
c014a2d55e
quadblitter: minimize total rgb distance
Previously, the quadblitter compared the external two pixels
against the two lerps, and if the closest was closer to the
primary lerp than the secondary, trilerped the closest with
the primary pair. Instead, calculate the total RGB distance,
and for whichever external pixel is closer to the primary
lerp, calculate the trilerp and the new candidate difference.
if the candidate difference is less than the total distance,
select it and perform the trilerp. This improves upon the
"twinkling problem" described in #1354, though it does not
entirely resolve it. Performance change is negligible. Add a
unit test for this change.
2021-02-21 11:34:06 -05:00
nick black
6f156c11a1
Merge branch 'master' of github.com:dankamongmen/notcurses 2021-02-21 08:22:45 -05:00
nick black
d732ffc1f4
rust: use CELL_BG_ALPHA_MASK not CHANNEL_ALPHA_MASK 2021-02-21 08:22:25 -05:00
nick black
925870bd7a
update some definitions in USAGE.md 2021-02-19 12:41:43 -05:00
nick black
4951ea3d88
update comment on notcurses_lex_scalemode() 2021-02-19 12:36:25 -05:00
nick black
d845e979c2
tighten up CELL_BG_ALPHA_MASK 2021-02-19 12:15:44 -05:00
nick black
54c5675318
fetch_bsd_cpuinfo: no love from hurd 2021-02-18 08:13:27 -05:00
nick black
c10f5a40ce
v2.2.2 2021-02-18 07:07:26 -05:00
nick black
2741b049cb
don't expose nctree in 2.2.2 2021-02-18 07:04:03 -05:00
nick black
3603a2a661
ffmpeg: don't use best_effort_timestamp #1352 2021-02-18 06:27:15 -05:00
nick black
b93915c2f5
ffmpeg: update diagnostic 2021-02-18 06:04:28 -05:00
nick black
14d6627874
apply_term_heuristics: note about alacritty/sextants 2021-02-18 05:19:23 -05:00
nick black
87e7c2c490
differentiate ourselves from the python competition lol 2021-02-18 04:18:10 -05:00
nick black
6273a34fe5 emit term reset only on terms 2021-02-18 04:14:41 -05:00
nick black
f775ae6b59 rust: update stats() 2021-02-18 04:14:41 -05:00
nick black
aec3b06171 remove 1350.c 2021-02-18 04:14:41 -05:00
nick black
28adef7ed8 interrogate_terminfo: set utf8 bit 2021-02-18 04:14:41 -05:00
nick black
840155cd18 reset_term_attributes: ensure we flush #1350 2021-02-18 04:14:41 -05:00
nick black
d3bbfa411b add ton's sample code PoC #1350 2021-02-18 04:14:41 -05:00
nick black
6c599797e6
ncdirect_flush() in ncdirect_stop_minimal() #1090 2021-02-18 01:48:46 -05:00
nick black
1df9d85f28
Lock accesses to notcurses_stats #1139
notcurses_stats() and notcurses_stats_reset() now take the
new statlock member, as do stat modifications from render,
raster, writeout, resize, plane creation, and plane
destruction. Add nonnull attributes to stats API. Initialize
and destroy statlock as part of notcurses struct. Update
documentation. Free pilelock on error paths. Closes #1139.
2021-02-18 01:37:30 -05:00
nick black
9be2f138e3
move sixel support bit to tcache from notcurses #200 2021-02-18 01:08:55 -05:00
nick black
a95d3f6035
stats: eliminate stashstats structure 2021-02-18 01:03:18 -05:00
nick black
d567ec683f
banner and stats work
Stats: preserve planecount across reset_stats(), since it is
an instantaneous (rather than cumulative) stat. Properly
initialize plane count to 0 in notcurses_init().

Banners: print min/avg/max rather than min/man/avg. Don't
predivide maximum byte output; it reduces accuracy.
2021-02-18 00:51:49 -05:00
nick black
4e577cbc97 nctree: toss unused code #1164 2021-02-15 13:23:41 -05:00
nick black
bcfe0b2fd5 nctree_prev(): test cases pass #1164 2021-02-15 13:23:41 -05:00
nick black
ab8caf5915 nctree_next: implement + test #1644 2021-02-15 13:23:41 -05:00
nick black
528c7f589f nctree: traversal unit tests #1644 2021-02-15 13:23:41 -05:00
nick black
ad7936ccc3 nctree_prev(): implement it #1164 2021-02-15 13:23:41 -05:00
nick black
69d78fb945 nctree_focused() 2021-02-15 13:23:41 -05:00
nick black
293618e427 nctree_create(): free plane on all error paths #1164 2021-02-15 13:23:41 -05:00
nick black
74079c4b65 nctree: test nctree_focused() #1164 2021-02-15 13:23:41 -05:00
nick black
25370abd19 nctree: prep_initial_path(), nctree_focused() #1164 2021-02-15 13:23:41 -05:00
nick black
be1282ffd9 nctree: keep ncplane in toplevel #1164 2021-02-15 13:23:41 -05:00
nick black
3aa4311559 nctree: test NULL callback case for real #1164 2021-02-15 13:23:41 -05:00
nick black
6227b9c1ba tree: rationalize data organization #1164 2021-02-15 13:23:41 -05:00
nick black
85e3e1d79a implement nctree_offer_input() 2021-02-15 13:23:41 -05:00
nick black
ce619f7af5 tree: implement nctree_plane() #1164 2021-02-15 13:23:41 -05:00
nick black
cf367289c8 nctree: fix memory leak on error path 2021-02-15 13:23:41 -05:00
nick black
41d056b8d6 nctree tests: render planes #1164 2021-02-15 13:23:41 -05:00
nick black
bad552fade zalgo: suppress banners 2021-02-15 13:23:41 -05:00
nick black
bb14694000 add nctree movement api #1164 2021-02-15 13:23:41 -05:00