Documentation ¶
Overview ¶
Package tty implements the os part of the terminal
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTY ¶
type TTY struct { Fd int // contains filtered or unexported fields }
TTY is a basic structure to control the terminal state
func (*TTY) OnResize ¶
OnResize listen of the SIGWINCH event (trigger by terminal apps after the terminal changes its sizes). The callback cbk is also called the first time this function is called even if not SIGWINCH is called.
func (*TTY) SaveTTYState ¶
SaveTTYState records the current low level terminal state
Click to show internal directories.
Click to hide internal directories.