TTY
src/tty/macros.cr
Constants
CBAUD_MASK = 4111_u32
CC_NAMES = [{ControlChar::Intr, "intr"}, {ControlChar::Quit, "quit"}, {ControlChar::Erase, "erase"}, {ControlChar::Kill, "kill"}, {ControlChar::Eof, "eof"}, {ControlChar::Time, "time"}, {ControlChar::Min, "min"}, {ControlChar::Swtc, "swtch"}, {ControlChar::Start, "start"}, {ControlChar::Stop, "stop"}, {ControlChar::Susp, "susp"}, {ControlChar::Eol, "eol"}, {ControlChar::Reprint, "rprnt"}, {ControlChar::Discard, "flush"}, {ControlChar::WErase, "werase"}, {ControlChar::LNext, "lnext"}, {ControlChar::Eol2, "eol2"}]
NCCS = 19
POLL_ERROR = IOEvent::Error.value
POLL_HUP = IOEvent::HangUp.value
POLL_INVALID = IOEvent::Invalid.value
TCFLSH = 21515_u64
TCGETS = 21505_u64
TCGETS2 = 2150388778_u64
TCSBRK = 21513_u64
TCSETS = 21506_u64
TCSETS2 = 1076646955_u64
TCSETSF = 21508_u64
TCSETSW = 21507_u64
TCXONC = 21514_u64
TIOCCBRK = 21544_u64
TIOCEXCL = 21516_u64
TIOCGETD = 21540_u64
TIOCGEXCL = 2147767360_u64
TIOCGICOUNT = 21597_u64
TIOCGPGRP = 21519_u64
TIOCGPKT = 2147767352_u64
TIOCGPTLCK = 2147767353_u64
TIOCGPTN = 2147767344_u64
TIOCGPTPEER = 21569_u64
TIOCGSID = 21545_u64
TIOCGWINSZ = 21523_u64
TIOCINQ = 21531_u64
TIOCMBIC = 21527_u64
TIOCMBIS = 21526_u64
TIOCMGET = 21525_u64
TIOCMIWAIT = 21596_u64
TIOCMSET = 21528_u64
TIOCNOTTY = 21538_u64
TIOCNXCL = 21517_u64
TIOCOUTQ = 21521_u64
TIOCPKT = 21536_u64
TIOCSBRK = 21543_u64
TIOCSCTTY = 21518_u64
TIOCSERGETLSR = 21593_u64
TIOCSETD = 21539_u64
TIOCSPGRP = 21520_u64
TIOCSPTLCK = 1074025521_u64
TIOCSTI = 21522_u64
TIOCSWINSZ = 21524_u64
Class methods
cbreak(fd : Descriptor, action : SetAction = SetAction::Now, & : -> U) : U forall U
Sourceclear_break(fd : Descriptor) : Nil
Sourceclear_modem_lines(fd : Descriptor, lines : ModemLine) : Nil
Sourcedrain(fd : Descriptor) : Nil
Sourceflow_control(fd : Descriptor, action : FlowAction) : Nil
Sourceflush(fd : Descriptor, queue : FlushQueue = FlushQueue::Both) : Nil
Sourcemodem_status(fd : Descriptor) : ModemLine
Sourcemodify_termios(fd : Descriptor, action : SetAction = SetAction::Now, & : Termios -> Termios) : Termios
Sourceon_resize(fd : Descriptor, &block : Winsize -> ) : Nil
Sourceraw(fd : Descriptor, action : SetAction = SetAction::Now, & : -> U) : U forall U
Sourcesend_break(fd : Descriptor) : Nil
Sourceserial_icount(fd : Descriptor) : SerialICount
Sourceset_modem_lines(fd : Descriptor, lines : ModemLine) : Nil
Sourceset_modem_status(fd : Descriptor, lines : ModemLine) : Nil
Sourcewait_modem(fd : Descriptor, lines : ModemLine) : Nil
Sourcewinsize(fd : Descriptor) : Winsize
SourceMacros
configure(fd, &block)
Sourcespawn(command, args = nil, &block)
Sourcewith_terminal(fd, **options, &block)
SourceNested types
- TTY::Baud
- TTY::ChildEvent
- TTY::ChildEventKind
- TTY::ChildStatus
- TTY::ControlChar
- TTY::ControlFlag
- TTY::Descriptor
- TTY::Error
- TTY::ExitStatusMethods
- TTY::FD
- TTY::FlowAction
- TTY::FlushQueue
- TTY::IOEvent
- TTY::InputFlag
- TTY::LocalFlag
- TTY::ModemLine
- TTY::OutputFlag
- TTY::PTY
- TTY::Packet
- TTY::PacketEvent
- TTY::PacketKind
- TTY::PollFd
- TTY::SerialICount
- TTY::Session
- TTY::SetAction
- TTY::SignalValue
- TTY::SpawnOptions
- TTY::Syscall
- TTY::Termios
- TTY::Termios2
- TTY::Timeout
- TTY::Winsize