# Functions
GetSize returns the dimensions of the given terminal.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
IsTerminal returns true if the given file descriptor is a terminal.
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.
Restore restores the terminal connected to the given file descriptor to a previous state.