From: simon Date: Wed, 24 Oct 2001 11:50:07 +0000 (+0000) Subject: Now that we can configure whether ^C and friends generate Telnet IP X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/2a8a449c327ff7620a9f35b1c71442579b999ee7 Now that we can configure whether ^C and friends generate Telnet IP and friends, we should honour the user's choice even in line editing mode. In particular, Telnet talkers don't like us randomly spraying Telnet IP whenever the user accidentally hits ^C, so this is not a helpful default. git-svn-id: svn://svn.tartarus.org/sgt/putty@1316 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ldisc.c b/ldisc.c index 492ad1e0..e464c131 100644 --- a/ldisc.c +++ b/ldisc.c @@ -132,6 +132,13 @@ void ldisc_send(char *buf, int len, int interactive) term_buflen--; } back->special(TS_EL); + /* + * We don't send IP, SUSP or ABORT if the user has + * configured telnet specials off! This breaks + * talkers otherwise. + */ + if (!cfg.telnet_keyboard) + goto default_case; if (c == CTRL('C')) back->special(TS_IP); if (c == CTRL('Z')) @@ -204,6 +211,7 @@ void ldisc_send(char *buf, int len, int interactive) } /* FALLTHROUGH */ default: /* get to this label from ^V handler */ + default_case: if (term_buflen >= term_bufsiz) { term_bufsiz = term_buflen + 256; term_buf = saferealloc(term_buf, term_bufsiz);