MCPcopy Create free account
hub / github.com/F-Stack/f-stack / terminal_adjust

Function terminal_adjust

dpdk/lib/cmdline/cmdline_os_unix.c:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "cmdline_private.h"
10
11void
12terminal_adjust(struct cmdline *cl)
13{
14 struct termios term;
15
16 tcgetattr(0, &cl->oldterm);
17
18 memcpy(&term, &cl->oldterm, sizeof(term));
19 term.c_lflag &= ~(ICANON | ECHO | ISIG);
20 tcsetattr(0, TCSANOW, &term);
21
22 setbuf(stdin, NULL);
23}
24
25void
26terminal_restore(const struct cmdline *cl)

Callers 1

cmdline_stdin_newFunction · 0.70

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected