sily.terminal.windows

Windows specific terminal utils. Made only to handle unicode page and get terminal size. It is not in any means stable or finished or should be used in production. Please just use linux, it's so much better in that regard

Members

Functions

getch
int getch()

Returns last pressed key

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

Returns true if file is a tty (can't promice it'll work on windows properly)

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

Variables

h
HANDLE h;
Undocumented in source.

Meta