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]
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);
}