Expand description
Native Unix terminal backend for FrankenTUI.
This crate implements the ftui-backend traits for native Unix/macOS terminals.
It replaces Crossterm as the terminal I/O layer (Unix-first; Windows deferred).
§Escape Sequence Reference
| Feature | Enable | Disable |
|---|---|---|
| Alternate screen | CSI ? 1049 h | CSI ? 1049 l |
| Mouse (SGR) | CSI ? 1000;1002;1006 h | CSI ? 1000;1002;1006 l |
| Bracketed paste | CSI ? 2004 h | CSI ? 2004 l |
| Focus events | CSI ? 1004 h | CSI ? 1004 l |
| Kitty keyboard | CSI > 15 u | CSI < u |
| Cursor show/hide | CSI ? 25 h | CSI ? 25 l |
| Sync output | CSI ? 2026 h | CSI ? 2026 l |
Structs§
- RawMode
Guard - RAII guard that saves the original termios and restores it on drop.
- TtyBackend
- Native Unix terminal backend.
- TtyClock
- Monotonic clock backed by
std::time::Instant. - TtyEvent
Source - Native Unix event source (raw terminal bytes →
Event). - TtyPresenter
- Native ANSI presenter (Buffer → escape sequences → stdout).
- TtySession
Options - Configuration for opening a terminal session.
Functions§
- write_
cleanup_ sequence - Write the full cleanup sequence for the given feature state to
writer.