unconditionally set the telnet state to SEENCR regardless of whether
we have actually seen a CR, and as a result sending a NUL through
PuTTY (via Ctrl-Space or whatever) does not work. Must have arisen
through some kind of really weird cut-and-paste error!
[originally from svn r9545]
char cc = c;
sel_write(telnet->pty, &cc, 1);
- telnet->state = SEENCR;
+ if (c == CR)
+ telnet->state = SEENCR;
+ else
+ telnet->state = TOP_LEVEL;
}
break;
case SEENIAC: