We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358b3e7 commit 599192dCopy full SHA for 599192d
elkscmd/inet/telnet.c
@@ -220,12 +220,11 @@ main(int argc, char **argv)
220
221
struct termios termios;
222
tcgetattr(0, &termios);
223
+ termios.c_oflag |= (OPOST | ONLCR);
224
+ termios.c_lflag &= ~ISIG; /* ISIG off to disable ^N/^O/^P */
225
#ifdef RAWTELNET
226
termios.c_iflag &= ~(ICRNL | IGNCR | INLCR | IXON | IXOFF);
- termios.c_oflag &= ~(OPOST);
- termios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG);
227
-#else
228
- termios.c_lflag &= ~ISIG; /* ISIG off to disable ^N/^O/^P */
+ termios.c_lflag &= ~(ECHO | ECHONL | ICANON)
229
#endif
230
tcsetattr(0, TCSANOW, &termios);
231
nonblock = 1;
0 commit comments