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

Function terminal_echo

sources/system/unix/common.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void terminal_echo(int yn)
82{
83 struct termios oldt, newt;
84 tcgetattr(0, &oldt);
85 newt = oldt;
86 if (!yn)
87 newt.c_lflag &= ~ECHO;
88 else
89 newt.c_lflag |= ECHO;
90 tcsetattr(0, TCSANOW, &newt);
91}
92
93namespace cs_impl {
94 namespace conio {

Callers 2

getchFunction · 0.85
kbhitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected