34 Commits

Author SHA1 Message Date
0917be0ac5 Add terminal capability app (#833)
Useful for scripting to run on a bunch of terminals to validate capability detection.
2025-03-26 04:54:08 +00:00
3f2c6107e7 Parse secondary attributes event (#827) 2025-03-25 15:59:41 +00:00
52916d2f4a Rewrite POSIX Tty to actually use the TTY (#805)
And a PTY for testing. Windows still uses stdin/stdout for now.
2025-03-19 20:27:29 +00:00
7d5f4db29c Return DebugEvent directly from nextDebug (#797) 2025-03-15 04:27:19 +00:00
d71f455e18 Rename TerminalParser to EventParser (#796) 2025-03-15 04:14:21 +00:00
a9441cc34f Eliminate terminal event package (#795) 2025-03-15 03:57:21 +00:00
ca85e48a07 Add APIs to query if streams are TTYs (#794) 2025-03-15 03:34:22 +00:00
ad9a59223f Add Tty.reset API (#789)
Allows reusing the bound Tty after useAsTerminal, or to just skip freeing resources if the process is exiting.
2025-03-13 15:42:37 -04:00
d77614b518 Split Terminal API from TTY Terminal implementation (#785)
This fixes the public API problem in the runtime.

Expose a TestTerminal from the testing library as well.
2025-03-13 15:30:10 +00:00
633f664989 Only allow a single bound Tty at a time (#771) 2025-03-05 15:01:19 +00:00
8f35bcf692 Do not require a callback during Tty creation (#768) 2025-03-04 19:30:02 +00:00
3c1458fbcb Do not repeat APIs from Tty (#758)
These are lower-level, so you can go down to get them.
2025-02-28 20:26:56 +00:00
1d6a300bb8 Upgrade to Kotlin 2.1.20-RC (#734)
Use the new application plugin replacement.
2025-02-24 17:02:18 +00:00
4461277809 Eliminate useless Tty type (#728)
I want the name for renaming PlatformInput.
2025-02-23 16:53:23 +00:00
915d5ce41a Move raw mode enabling to platform input (#723) 2025-02-23 06:10:14 +00:00
fd2b22e562 Run startup bootstrap in the main event loop (#700) 2025-02-16 13:32:11 +00:00
17c2369efd Add API for synchronosly fetching the current terminal size (#688) 2025-02-10 10:32:36 -05:00
d32e42be0e Add platform resize events (#683) 2025-02-06 15:57:53 -05:00
9e614052f3 Produce debug events for platform integration (#675) 2025-02-03 11:33:17 -05:00
fe34cd2f29 Rewrite native input handling
This will allow out-of-band events to come in, such as a resize from SIGWINCH, or focus and resize from Windows' console events in a future change.
2025-01-24 05:25:38 +00:00
815a79eadd Output bytes with parsed events (#570) 2024-12-06 03:27:23 +00:00
313a770845 Flesh out Kitty parsing even more (#559) 2024-12-03 05:03:12 +00:00
1930f5b6c1 Start parsing Kitty keyboard events (#555)
Just enough to capture Ctrl+C in this mode for now.
2024-11-29 05:26:51 +00:00
0fc398cbb5 Complete and test SS3 legacy key events (#552) 2024-11-27 17:42:33 -05:00
fbdea9c215 Start parsing OSC color updates (#549) 2024-11-27 15:39:18 +00:00
4d0f5a3456 Some quick mouse fixes (#545) 2024-11-22 22:37:11 +00:00
2aa8682c00 Parse system theme events (#539) 2024-11-22 04:28:49 +00:00
762020cd72 Start parsing terminal events (#534) 2024-11-20 18:13:15 -05:00
5c4284db22 Update dependency com.github.ajalt.clikt:clikt to v5 (#478)
* Update dependency com.github.ajalt.clikt:clikt to v5

* Import

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com>
2024-09-17 03:34:01 +00:00
d254d94c06 Add stdin reader to Tty class (#472) 2024-09-12 00:41:14 -04:00
89e9f8befe Make raw mode entry more robust (#465) 2024-09-06 23:18:27 -04:00
d3dfb05151 Remove extra whitespace 2024-09-04 16:47:32 -04:00
7faa8f4286 Add flags to enable other modes (#463) 2024-09-03 22:16:44 -04:00
028a7a9bff Add tool for displaying raw input (#462) 2024-09-03 21:01:56 -04:00