GetSize returns the dimensions of the given terminal.
IsTerminal returns true if the given file descriptor is a terminal.
Restore restores the terminal connected to the given file descriptor to a previous state.
State contains the state of a terminal.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
MakeRaw put the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.