MCPcopy Create free account
hub / github.com/antirez/smallchat / termios

Class termios

smallchat-client.c:52–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 /* We have a bit of global state (but local in scope) here.
51 * This is needed to correctly set/undo raw mode. */
52 static struct termios orig_termios; // Save original terminal status here.
53 static int atexit_registered = 0; // Avoid registering atexit() many times.
54 static int rawmode_is_set = 0; // True if raw mode was enabled.
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected