1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Turn of ICRNL in the client tty when we're not in editing mode. This

means that we send literal CRs and let the remote pty layer work out what to
do with them, so that if it wants raw mode it can have it.

[originally from svn r5114]
This commit is contained in:
Ben Harris 2005-01-15 20:39:27 +00:00
parent 6b1afc2a68
commit 178a66ea0f

View File

@ -129,10 +129,13 @@ void ldisc_update(void *frontend, int echo, int edit)
else
mode.c_lflag &= ~ECHO;
if (edit)
if (edit) {
mode.c_iflag |= ICRNL;
mode.c_lflag |= ISIG | ICANON;
else
} else {
mode.c_iflag &= ~ICRNL;
mode.c_lflag &= ~(ISIG | ICANON);
}
tcsetattr(0, TCSANOW, &mode);
}