From 60de97e63aff2336305ffb56cdf701119bcaf47a Mon Sep 17 00:00:00 2001 From: chombier <> Date: Mon, 18 Jun 2001 09:13:24 +0000 Subject: [PATCH] added show/hide log --- macssh/source/debug-errors/telnetdebug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/macssh/source/debug-errors/telnetdebug.c b/macssh/source/debug-errors/telnetdebug.c index 9ce0cd8..9cce4d3 100755 --- a/macssh/source/debug-errors/telnetdebug.c +++ b/macssh/source/debug-errors/telnetdebug.c @@ -22,6 +22,7 @@ extern WindRec *screens; #define DEBUG_FACILITIES +extern MenuHandle myMenus[NMENUS]; /* Menu Handles .... */ void InitDebug(void) { @@ -190,6 +191,7 @@ long dumpln(long base, char *dest, void *src, long len) // HandleKeyDown should do an immediate return after calling us. Boolean DebugKeys(Boolean cmddwn, unsigned char ascii, short s) { + Str255 scratchPstring; #ifdef DEBUG_FACILITIES if (cmddwn && (ascii == ';')) { // 2.6b16.1 char hackhackhack[80]; @@ -202,6 +204,10 @@ Boolean DebugKeys(Boolean cmddwn, unsigned char ascii, short s) if (cmddwn && (ascii == 39)) { //single quote if (TelInfo->debug) HideDebugWindow(); else ShowDebugWindow(); + + GetIndString( scratchPstring, MISC_STRINGS, (TelInfo->debug) ? HIDE_LOG : SHOW_LOG); + SetMenuItemText( myMenus[Conn], COshowlog, scratchPstring); + return(FALSE); } #endif