Commit Graph

4701 Commits (f096064648d86f7ce5c67c2587fd0612fd2caafa)

Author SHA1 Message Date
nick black 20fb846fbc kill obsolete FIXME 3 years ago
nick black 4aab6a5bc0 reparent: scrub links more completely for safe family reparenting #2235 3 years ago
nick black 45255e48d8 [demo] handle fps graph as family in case it's pixel #2235 3 years ago
nick black 230fb801f0 [pixelplot] set distinct name for pixel plane 3 years ago
nick black 9185ea000c
add ncplane_set_name()/ncplane_name() + documentation 3 years ago
nick black 518eca2f60
move_family_{below,above}() need return int #2232 3 years ago
nick black a2837a9754
fix unit test for ncplane_move_family() #2232 3 years ago
nick black 099eda88ac
notcurses-info: put 80 columns error in red+bold 3 years ago
nick black a40c7a5352
FamilyBottom unit test #2232 3 years ago
nick black e613b81b82
ncplane_move_family_{below, above}() with unit tests #2232 3 years ago
nick black 2b9765e945
finish out ncplane_move_family_{top, bottom}() #2232 3 years ago
nick black 3d21c0a91b
[input] handle backspace when expressed as ctrl expression #2231 3 years ago
nick black 6fa901c4b1
[kitty] fix default background workaround, erp 3 years ago
nick black 8dd84f922e
ncplane_move_family_{below, above}() skeleton #2232 3 years ago
nick black 57a3e79e3c
s/defbg/default background/ 3 years ago
nick black 43fc6afaa3
ncplane_move_family_{above, below}() #2232 3 years ago
nick black c69849ffb1
track unknown background color if we can't learn it #2226 3 years ago
nick black e42a76a2d2
Remove and replace ncplane_boundlist()
The function ncplane_boundlist() was poorly-considered,
and ought never have existed. Remove all traces of it.
Add the new functions ncplane_move_family_top() and
ncplane_move_family_bottom(). Replace the
ncplane_boundlist() code in notcurses-demo with a call
to ncplane_move_family_top(). We'll also want
ncplane_move_family_above() and ncplane_move_family_below(),
but they're not yet here. Document all z-axis movement
functions; they were lacking documentation before #2232.
3 years ago
nick black 73b3a43fc7
[notcurses-tester] dump geometry after init #2228 3 years ago
nick black 284bbd4723
notcurses-tester: print TERM earlier #2228 3 years ago
nick black dfb32779b7 [automaton] handle BEL (0x07) as string terminator #2225 3 years ago
nick black 9c59ea5164 [automaton] move decrpm_asu_cb up #2223 3 years ago
nick black f3377fd818
[automaton] handle XTGETTCAP, decoding MLterm and old Kitty #2225 3 years ago
nick black f3c18b3279
[automaton] loop all the way through 9, whoops #2225 3 years ago
nick black c5cf67e5f1
[automaton] collapse secondary device attribute strings #2227 3 years ago
nick black fe05035930
[xray] black background, not default #2226 3 years ago
nick black 2b482109af [automaton] remove defunct fill_in_numerics 3 years ago
nick black 5d8fbc6137 [automaton] numeric insertion algorithm perfected #2222 3 years ago
nick black 686a72a697 [automaton] phase I and II of new numeric insert algorithm #2222 3 years ago
nick black 6c45a087bf build cflow following special keys #2222 3 years ago
nick black f0fd38ef9e [windows] kill some %j conversion in ncmultiselector 3 years ago
nick black 5e07cf9015 [windows] kill %zu conversion 3 years ago
nick black bbb778b7de
[da1_cb] admit 60 as sent by kmscon 3 years ago
nick black af62226f69
[plots] always return -1 on x below window 3 years ago
nick black 346e7354a0
[plots] don't redraw plot when there's no change #2221 3 years ago
nick black fff190fe29
[automaton] NAK: terminfo is not thread-safe =/ 3 years ago
nick black 2498fffbbb
[automaton] unify insertion paths into insert_path() #2183 3 years ago
nick black ce931a1bd5
[add_cflow] s/csi/seq/g 3 years ago
nick black 57179a1c38 [automaton] pool needn't be so large, methinks 3 years ago
nick black 57e5981b9d [automaton] kill memory leak via arena 3 years ago
nick black 9fc4418912 [automaton] match follow for mouse events 3 years ago
nick black 49365e2d22 decrpm_asu_cb: correct follow 3 years ago
nick black 1442b35fb5 [input] enable prep_special_keys() once more 3 years ago
nick black f19ffddb40 [automaton] robustify/minimize string matches #2219 3 years ago
nick black 0749800a9d [automaton] better numeric matching #2219 3 years ago
nick black 21cd23d767
logging: replace some llx with PRIx64 3 years ago
nick black f816365aab clean up some compiler warnings on macOS 3 years ago
nick black b5c161a07c
Unify control sequence automata #2183 (#2208)
Unify the dynamic, dataflow special keys automaton and the static, codeflow terminal response automaton, yielding a single automaton. Add kitty keyboard support information to `notcurses-info`. Closes #2183.
3 years ago
nick black 05635aa60d [input] windows: don't try to make a pipe 3 years ago
nick black f6b06c3bfd [input] drain input readiness pipe on clearing input buffer #2216 3 years ago
nick black 81e360e500 [input] activate ready pipes upon producing input data #2216 3 years ago
nick black 5899a71e28 [input] create ready pipes #2216 3 years ago
nick black 9970238514
notcurses-input: fix plot width to legend 3 years ago
nick black 47bffea4ab extract out tiocgwinsz() #2141 3 years ago
nick black b19c9a7ad1
[ncdirect_readline] return NULL on NCKEY_EOF sans input #2211 3 years ago
nick black 436f24c770
Remove libreadline support, implement low-level ncdirect_readline #2211 (#2212)
It was realized that our libreadline wrapper was incompatible with the new input method, indeed fundamentally so. Rip out all libreadline support. Implement a minimal ncdirect_readline() -- quite minimal, but enough to get by. We'll want to fill this out later.

So no ABI/API breakage, though perhaps some visible behavioral change.
3 years ago
nick black 3ddbb3c2ec
readline PoC 3 years ago
initramfs 671656ea80 fix ncpp throwing heap allocated exceptions 3 years ago
nick black 925fccbbc3
setup_sixel_bitmaps(): update comment re DECSDM #2205 3 years ago
nick black 61c700aafc
notcurses_stop: put newline into fbuf 3 years ago
nick black 580727f9ae
init_sixel: correct comment #2205 3 years ago
nick black c8f614ae19
sixel_init_inverted: correct comment #2205 3 years ago
nick black 3136abca48
[sixel] don't use the short form of 80+8452; contour barfs 3 years ago
nick black c5ab28acbd
[termdesc] contour still has classic DECSDM 3 years ago
nick black 2239e1c7fc
[intro] don't require pixels for orca 3 years ago
nick black 8585c0a8a9 [subprocs] use posix_spawn in place of fork+exec #2194 3 years ago
nick black 9d7fb54535 replace ncsubproc_createvpe() with ncexecvpe() #2194 3 years ago
nick black 5553919579 [subprocs] factor out ncexecvpe() #2194 3 years ago
nick black a5397ea19a [subproc] kill FIXME; set pipes O_CLOEXEC manually in absence of pipe2() 3 years ago
nick black 3c7d23b151 [compat] add set_fd_cloexec() 3 years ago
nick black 4da93eae5d
kill FIXME: detect whether linesigs are enabled on startup 3 years ago
nick black 58f650f0c1 drop mlterm inversion for DECSDM 3 years ago
nick black 0b62a89834 Invert interpretation of DECSDM #2204
more and more terminals are switching their
interpretation of DECSDM to match the actual VT340
behavior, rather than that of XTerm prior to
patchlevel 369. start using \e[?80l by default to
turn DECSDM on. track terminalsXversions which
use the previous behavior, and for them, emit 80h.
continue to always send 8452h, on which i have
no data suggesting anything but one interpretation.
remove pixel_shutdown. note that Alacritty switched
over to the new semantics in 0.15.1.
3 years ago
nick black 9f2eb07ce6 make pixel implementation choice clearer
We were using the value of pixel_shutdown to decide
whether we needed to take a kitty-specific path or
not. Instead, just use the pixel_implementation field
of tinfo, which was added a few weeks back.
3 years ago
nick black 6985d9a715 drop tinfo argument from pixel_init() 3 years ago
nick black 556039eb73
compare_versions: work for multidigit version components 3 years ago
joseLuís fb003c4eef fix doc-comment on ncplane_erase_region
and another minor typo
3 years ago
joseLuís 2141338e4c revert stylemask return types #2200 3 years ago
joseLuís 1811e3b0ef fix stylemask return types #2200 3 years ago
joseLuís d55a44ef4b make `ncdirect_styles` require const reference 3 years ago
nick black 0918fa251e
XTerm 359+ uses correct DECSDM #1782 3 years ago
nick black eee94d8e40
mintty switches DECSDM in 3.5.2 #1782 3 years ago
nick black f42a563367
[input] no transitions >= 0x80 3 years ago
magiblot 7fd93b5977 ncwidth: fix heap overrun 3 years ago
nick black 828c06ffde ncplane_erase_region: unit tests 3 years ago
nick black 8a0d924baf ncplane_erase_region(): protect against overflow 3 years ago
nick black 0c41b3ddc5 grid: cli-style 3 years ago
nick black 69e58667c7 [bitmapstates] properly use ncplane_erase_region() 3 years ago
nick black ad2b806444 add grid PoC 3 years ago
nick black e770dbff43 ncplane_erase_regions: generalize harder #2181 3 years ago
nick black 72757044da [ncplane_erase_region] generalize #2181 3 years ago
nick black 9733835673
ncplane_erase_region: grotesque copy-and-paste bug =[ 3 years ago
nick black 0fef97c1fb ncneofetch: no scaling when using NCBLIT_PIXEL 3 years ago
nick black d8c1a67b81
[input] don't tear down input layer on windows for now #2192 3 years ago
nick black 257ec21671
[windows] use WaitForSingleObject 3 years ago
nick black 92f4dce595
use wcsrtombs() in place of wcstombs() 3 years ago
nick black 5412adef4d
[input] set rifd high on WAIT_OBJECT_0 #2192 3 years ago
nick black 690ed75c8f
[input] initialize stdinhandle on windows #2192 3 years ago
nick black 7c197fba59
remove obsolete FIXME 3 years ago
nick black 675a4ac63c
we're using kitty keyboard level 1, not 31 3 years ago
nick black 0bf192f4c1
sync sixel_draw/kitty_redraw #2189 3 years ago
nick black e983c83d4e [input] mask SIGTHR where defined #2191 3 years ago
nick black 343a74ac82
[ncneofetch] don't move logo to left #2138 3 years ago
nick black e9891bc555 [interp] drop unused variable 'id' 3 years ago
nick black 37fb92dba3 interp PoC: don't use NCOPTION_DRAIN_INPUT 3 years ago
nick black 5c82d5b849
[input] properly convert delaybounds to deadlines 3 years ago
nick black 82a2f19d67
[input] account input events on receive side only 3 years ago
nick black 3faf8ee3fb
[input] introduce NCKEY_EOF #2185 3 years ago
nick black ea5da346f0
Add keytype indicator to notcurses-input #2182 3 years ago
nick black 99007e128c
[input] add evtype to ncinput, for press/repeat/release #2182 3 years ago
nick black b0c4a3af97
direct_dump_cellplane: position all lines according to xoff 3 years ago
nick black 0de21824cc
[input] return error once we've emptied ibuf and hit stdineof 3 years ago
nick black da6fc8420d
[input] consider a drop to be an input_error 3 years ago
nick black 70997670a5
[sprixel_redraw] want the offset, not absolute position #2168 3 years ago
nick black 6849ed9da7
[input] windows fixes 3 years ago
nick black bea71b99dd kill debugging cruft 3 years ago
nick black d36591b01b [input] handle mouse release, implement stdineof, w00t! 3 years ago
nick black 60ee94b4ca pump_control_read: return 2 following XTSMGRAPHICS #2174 3 years ago
nick black e12aceccce [input] break up events #2174 3 years ago
nick black 24eac43f4f interrogate_terminfo: allow for NULL termtype 3 years ago
nick black 8f4fa30e7b [input] replay non-escapes as regular text #2100 3 years ago
nick black fe34e797a3 [input] more precise utf8 matching 3 years ago
nick black 00f8246bf9 direct_raster: drop unnecessary flush 3 years ago
nick black 811f9334d1
A melange of fixen (#2179)
* split up ncdirect_dump_{sprixel, cellplane}()
* build ncdirect_dump_cellplane() out of fbuf #2167
* [macos] don't run pandoc in workflow
* [gpm] account for margins in mouse reports
* [in] drop mouse clicks from top/left margins
* [ffmpeg] compile against avformat 59+ w/out warnings
3 years ago
nick black 875b3a56de direct PoC: remove unnecssary fflush()es 3 years ago
nick black e6ca5ebd5e build ncdirect_dump_cellplane() out of fbuf #2167 3 years ago
nick black 8c12ca0c06 split up ncdirect_dump_{sprixel, cellplane}() 3 years ago
nick black c0f432f99b setup_signals: block SIGWINCH/SIGCONT for the calling thread #2175 3 years ago
nick black a6d0a7e2cd [input] support calling notcures_get() with a NULL ncinput 3 years ago
nick black 5eed1abe8e notcurses_get: restore old delaybound behavior #2169 3 years ago
nick black aa6b9486c9
pthread_cond_timedwait() directly returns errno #2169 3 years ago
nick black 8c0d32d986
fix windows build 3 years ago
nick black 1689365b6c
PixelWipe unit test: fix for sixel-based terminals 3 years ago
nick black b2b9655d6f don't try to run xrandr on XNU/Windows 3 years ago
nick black 0686a1c390
[input] signal when making space in output buffer 3 years ago
nick black 24c194df1b
[process_bulk] walk the buffer 3 years ago
nick black 78eeaf55ea
Merge branch 'master' into dankamongmen/input-thread 3 years ago
nick black 686aac4689
[input] pthread_cond_wait when no timeout 3 years ago
nick black 1d4c62d446
[input] implement timeouts 3 years ago
nick black edb9eff34b
[input] serialize terminfo lookups ugh 3 years ago
nick black 81e2fd1351
[input] track linesigs status 3 years ago
nick black 9edd0c7849
[input] load specials from terminfo, except on windows 3 years ago
nick black 3d02a75323
NCOPTION_DRAIN_INPUT in notcurses-info and ncneofetch 3 years ago
nick black a3ed82ccff
honor NCOPTION_DRAIN_INPUT 3 years ago
nick black 716a37f917
[input] walk specials automaton 3 years ago
nick black 5a64f25ac2
restripe_lastframe: properly index into tmp/lastframe 3 years ago
nick black bfdd5dd01d
notcurses_input: need lock around refresh() 3 years ago
nick black fd5708a7cd
unicode 14.0! 3 years ago
nick black 8f900754d5
[input] synthesize SIGINT/SIGQUIT 3 years ago
nick black c31f20b602
[input] remap 0x7f to NCKEY_BACKSPACE 3 years ago