1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-02-03 21:52:24 +00:00

RDB's patch: ^U sends Telnet Erase Line; line ending is now \r or \r\n

depending on protocol, so local ldisc works with ssh

[originally from svn r417]
This commit is contained in:
Simon Tatham 2000-03-17 10:31:14 +00:00
parent dfd6e3ffe4
commit b715fa4276

View File

@ -98,6 +98,7 @@ static void term_send(char *buf, int len) {
bsb(plen(term_buf[term_buflen-1])); bsb(plen(term_buf[term_buflen-1]));
term_buflen--; term_buflen--;
} }
back->special (TS_EL);
if( c == CTRL('C') ) back->special (TS_IP); if( c == CTRL('C') ) back->special (TS_IP);
if( c == CTRL('Z') ) back->special (TS_SUSP); if( c == CTRL('Z') ) back->special (TS_SUSP);
if( c == CTRL('\\') ) back->special (TS_ABORT); if( c == CTRL('\\') ) back->special (TS_ABORT);
@ -123,7 +124,10 @@ static void term_send(char *buf, int len) {
break; break;
case CTRL('M'): /* send with newline */ case CTRL('M'): /* send with newline */
back->send(term_buf, term_buflen); back->send(term_buf, term_buflen);
if (cfg.protocol == PROT_RAW)
back->send("\r\n", 2); back->send("\r\n", 2);
else
back->send("\r", 1);
c_write("\r\n", 2); c_write("\r\n", 2);
term_buflen = 0; term_buflen = 0;
break; break;