MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / restore_stty

Function restore_stty

bsp/simulator/drivers/uart_console.c:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void restore_stty(void)
110{
111 /* recover terminal's attribute */
112 tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
113}
114
115#define getch getchar
116static void * ThreadforKeyGet(void * lpParam)

Callers 1

rt_hw_exitFunction · 0.85

Calls 1

tcsetattrFunction · 0.85

Tested by

no test coverage detected