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

Function terminal_lnbuf

sources/system/unix/common.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67} // namespace cs_system_impl
68
69void terminal_lnbuf(int yn)
70{
71 struct termios oldt, newt;
72 tcgetattr(0, &oldt);
73 newt = oldt;
74 if (!yn)
75 newt.c_lflag &= ~ICANON;
76 else
77 newt.c_lflag |= ICANON;
78 tcsetattr(0, TCSANOW, &newt);
79}
80
81void terminal_echo(int yn)
82{

Callers 2

getchFunction · 0.85
kbhitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected