sily.terminal.posix

Posix specific terminal utils

Members

Enums

TermType
enum TermType
Undocumented in source.

Functions

getch
int getch()

Returns last pressed key

isatty
bool isatty(File file)
bool isatty(int fd_set)
bool isatty(FILE* handle)

Returns true if file is a tty

kbhit
bool kbhit()

Returns true if any key was pressed

terminalModeSetRaw
void terminalModeSetRaw(bool removeStdoutBuffer)

Creates new termios and unbuffers stdout. Required for kbhit and getch DO NOT USE IF YOU DON'T KNOW WHAT YOU'RE DOING

Structs

Termcap
struct Termcap
Undocumented in source.

Meta