6 Commits

Author SHA1 Message Date
Michael Davis
e9513d0c8d examples: Poll for features response 2025-04-10 16:05:00 -04:00
Michael Davis
cac0aea6c6 Add back Drop glue for terminal types
It's somewhat catastrophic to not reset console mode and code pages on
Windows - it seems to really mess up the terminal and can cause a crash
- so I think it's fine to reset mode automatically on drop. While we're
at it we might as well flush the writer buffers.
2025-04-08 09:48:24 -04:00
Michael Davis
fca131f25c examples: Call Terminal::reset_mode instead of relying on Drop
At some point recently I got rid of the Drop stuff. We need to reset the
mode or else Windows powershell crashes for me when trying to claim
CONIN$ twice. (Run an example before this commit and then run regular
`hx`).
2025-04-07 14:29:21 -04:00
Michael Davis
c2333d3df5 examples: Match all synchronized output events 2025-04-07 14:29:21 -04:00
Michael Davis
4989f49c8c Expose Terminal and PlatformTerminal at crate level 2025-04-07 10:33:57 -04:00
Michael Davis
59c84a2ca0 Add an example for detecting terminal features with queries 2025-04-06 07:56:51 -04:00