MCPcopy Create free account
hub / github.com/covscript/covscript / getch

Function getch

sources/system/unix/common.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 int getch()
139 {
140 terminal_lnbuf(0);
141 terminal_echo(0);
142 int ch = getchar();
143 terminal_lnbuf(1);
144 terminal_echo(1);
145 return ch;
146 }
147
148 int kbhit()
149 {

Callers

nothing calls this directly

Calls 2

terminal_lnbufFunction · 0.85
terminal_echoFunction · 0.85

Tested by

no test coverage detected