From 84b8d085185ef61f12b839e758b81d197defe82e Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 28 Jan 2003 00:17:17 +0000 Subject: [PATCH] Security fascists might claim that logging every keypress to stderr is a bad idea, so stop doing that (only in the Mac port, so not actually much of a problem). git-svn-id: svn://svn.tartarus.org/sgt/putty@2737 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index 243e7e5a..e3e8cc0f 100644 --- a/terminal.c +++ b/terminal.c @@ -4045,12 +4045,14 @@ void term_key(Terminal *term, Key_Sym keysym, wchar_t *text, size_t tlen, char output[10]; char *p = output; int prependesc = FALSE; +#if 0 int i; fprintf(stderr, "keysym = %d, %d chars:", keysym, tlen); for (i = 0; i < tlen; i++) fprintf(stderr, " %04x", text[i]); fprintf(stderr, "\n"); +#endif /* XXX Num Lock */ if ((flags & PKF_REPEAT) && term->repeat_off) @@ -4440,23 +4442,27 @@ void term_key(Terminal *term, Key_Sym keysym, wchar_t *text, size_t tlen, term_seen_key_event(term); if (prependesc) { +#if 0 fprintf(stderr, "sending ESC\n"); +#endif ldisc_send(term->ldisc, "\x1b", 1, 1); } if (p > output) { +#if 0 fprintf(stderr, "sending %d bytes:", p - output); for (i = 0; i < p - output; i++) fprintf(stderr, " %02x", output[i]); fprintf(stderr, "\n"); - +#endif ldisc_send(term->ldisc, output, p - output, 1); } else if (tlen > 0) { +#if 0 fprintf(stderr, "sending %d unichars:", tlen); for (i = 0; i < tlen; i++) fprintf(stderr, " %04x", text[i]); fprintf(stderr, "\n"); - +#endif luni_send(term->ldisc, text, tlen, 1); } } -- 2.11.0