class Termisu::TTY

Overview

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

Example:

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

Defined in:

termisu/tty.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Opens /dev/tty for terminal access.

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


[View source]

Instance Method Detail

def close #

Closes the TTY file descriptors.


[View source]
def flush #

[View source]
def infd : Int32 #

[View source]
def outfd : Int32 #

[View source]
def write(data : String) #

[View source]