24 Commits

Author SHA1 Message Date
82d6edd77d Rename TestTty to TestTerminal, add some docs all over (#1013) 2025-10-05 00:04:06 -04:00
ce7217f957 Support intercepting other writes to stdout and stderr (#1004) 2025-10-04 04:01:48 +00:00
e1333f7a9d Support reading and writing stdin, stdout, and stderr (#1001) 2025-10-03 03:39:53 +00:00
063cadd596 Add TestTty.readWithTimeout (#976)
Mostly for symmetry and because we can easily.
2025-09-20 04:20:31 +00:00
331c0eabea Standard stream reading and writing (#964) 2025-09-15 21:17:41 -04:00
07147ad368 Create dedicated standard streams type (#961)
More APIs are coming around standard streams.
2025-09-12 16:02:59 +00:00
a15df81797 Support changing 'is TTY' values via TestTty (#956) 2025-09-11 10:02:51 -04:00
b0071fe091 Add APIs to query if std streams are the TTY (#936) 2025-07-24 14:20:26 +00:00
36c6a9ec2b Expose Tty read/write as InputStream/OutputStream (#927)
Also add a simple Java sample which mimics the counter. Unfortunately it doesn't actually use very much of raw mode right now.
2025-07-18 04:25:07 +00:00
feda3512e1 Some TestTty renames (#878)
Resize is not just for sending events on Windows, so give it a distinct name.

Add 'send' verb for the Windows-specific, event-based callback helpers.

Update change log for window size fix.
2025-05-09 14:29:18 +00:00
af92d751bd Only bind one TestTty at a time (#873) 2025-04-30 03:18:39 +00:00
d7e4b098c8 Use IOException for I/O exceptions (#852) 2025-04-11 01:14:34 +00:00
9f3bacfb98 Support interrupting TestTty reads (#844) 2025-04-03 19:08:50 +00:00
1b88afedcc Add support for reads from the PTY side (TestTty) (#842) 2025-03-31 22:59:22 -04:00
4eac62b61a Correctly specify offset and count for native write (#841) 2025-03-29 05:08:22 +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
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
633f664989 Only allow a single bound Tty at a time (#771) 2025-03-05 15:01:19 +00:00
e71f179e33 Change TestTty write API to a single write (#770) 2025-03-05 04:05:07 +00:00
8f35bcf692 Do not require a callback during Tty creation (#768) 2025-03-04 19:30:02 +00:00
32a91bac67 Add TTY functions to write stdout and stderr (#738)
In the future these will be used to write bytes instead of chars and to intercept 'println' usage.
2025-02-25 03:11:17 +00:00
d325ca7d3e Clean up the JVM API as best we can (#736) 2025-02-24 17:26:18 +00:00
09c85ab524 Decouple TTY library from terminal (#732) 2025-02-24 14:46:59 +00:00