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
2025-04-08 09:48:24 -04:00
2025-04-01 10:29:25 -04:00
2025-04-01 10:29:25 -04:00
2025-04-01 10:29:25 -04:00
2025-04-05 09:15:52 -04:00
2025-04-01 10:29:25 -04:00

Termina

Crates.io Documentation

A cross-platform "virtual terminal" (VT) manipulation library.

Termina only "speaks text/VT" but aims to work on Windows as well as *NIX. This is made possible by Microsoft's investment into ConPTY. This means that Termina requires 64-bit Windows 10.0.17763 (released around Fall 2018) or later (same as WezTerm).

Termina is a cross between Crossterm and TermWiz with a lower level API which exposes escape codes to consuming applications. The aim is to scale well in the long run as terminals introduce VT extensions like the Kitty Keyboard Protocol or Contour's Dark/Light mode detection - those requiring minimal changes in Termina and also allowing flexibility in how applications detect and handle these extensions. See examples/event-read.rs for a look at a basic API.

Credit

Termina contains significant code sourced and/or modified from other projects, especially Crossterm and TermWiz. See "CREDIT" comments in the source for details on what was copied and what modifications were made. Since all copied code is licensed under MIT, Termina is offered under the MIT license as well at your option.

License

Licensed under either of:

at your option.

Description
A cross-platform VT manipulation library
Readme 246 KiB
Languages
Rust 99.2%
Nix 0.8%