module

Tea::TTY

TTY module for terminal operations

Class methods

fd(io : IO) : Int32 | Nil

Get the file descriptor from an IO

Source
open

Open the terminal TTY for reading and writing Returns {input_io, output_io}

Source
terminal?(io : IO) : Bool

Check if the given IO is a terminal

Source