Struct unsegen_terminal::Terminal
source[−]pub struct Terminal { /* private fields */ }
Expand description
unsegen Widget
that models a pseudoterminal and displays its contents to the window when
drawn.
Use ScrollBehavior
to scroll in the (potentially infinite buffer) and WriteBehavior
to
pass specific keystrokes to the terminal.
Implementations
Create a Terminal which will use the provided SlaveInputSink
to notify the user of new
input from the pty.
This method will create a posix pty. The associated file (path) can be obtained using
get_slave_name
.
Add raw byte input to the terminal window. Call this for bytes that you received (indirectly) from SlaveInputSink::receive_bytes_from_pty.
Get the name of the slave pseudoterminal that is associated with the Terminal
.
(c.f. posix ptsname
)
Trait Implementations
Default container behavior:
Scroll using PageUp
/PageDown
, jump to beginning/end using Home
/End
and pass all other
input to the slave terminal.