pub struct Tty { /* private fields */ }
Expand description
A terminal device driver.
The design is based on the Unix TTY/PTY subsystem. Unlike Unix, Theseus does
not distinguish between teletypes and pseudo-teletypes. Each Tty
consists
of two ends: a Master
and a Slave
. The terminal holds the master and
the application holds the slave. The TTY’s LineDiscipline
dictates how
the two interact.
In the context of Theseus, there are two terminals:
terminal_emulator
, which is the graphical terminal emulator implemented in Theseus.console
, which connects to an external terminal emulator through a serial port.
When started, both terminals launch the shell
, which contains the logic to
launch applications, store command history, autocomplete input, etc.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tty
impl Send for Tty
impl Sync for Tty
impl Unpin for Tty
impl !UnwindSafe for Tty
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more