class

Termisu::TTY

Inherits Reference / Object

Low-level TTY (terminal) interface for reading from and writing to /dev/tty.

Example:

tty = Termisu::TTY.new
# ... use tty ...
tty.close

Constructors

new

Opens /dev/tty for terminal access.

Raises IO::Error if the TTY cannot be opened.

Source

Instance methods

close

Closes the TTY file descriptors.

Source
flush
Source
infd
Source
outfd
Source
write(data : String)
Source
write(data : Bytes)
Source