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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5114
cda61777-01e9-0310-a592-
d414129be87e
else
mode.c_lflag &= ~ECHO;
else
mode.c_lflag &= ~ECHO;
+ if (edit) {
+ mode.c_iflag |= ICRNL;
mode.c_lflag |= ISIG | ICANON;
mode.c_lflag |= ISIG | ICANON;
+ } else {
+ mode.c_iflag &= ~ICRNL;
mode.c_lflag &= ~(ISIG | ICANON);
mode.c_lflag &= ~(ISIG | ICANON);
tcsetattr(0, TCSANOW, &mode);
}
tcsetattr(0, TCSANOW, &mode);
}