new_termios 70 terminal.cpp struct termios old_termios, new_termios; new_termios 72 terminal.cpp memset(&new_termios, 0, sizeof(new_termios)); new_termios 77 terminal.cpp memcpy(&old_termios, &new_termios, sizeof(new_termios)); new_termios 79 terminal.cpp if (tcgetattr(fd, &new_termios) == -1) return -1; new_termios 80 terminal.cpp } while (memcmp(&new_termios, &old_termios, sizeof(new_termios)) != 0);