From ccaf932ad363c9d95249b614fcdbfcb8a5b0615c Mon Sep 17 00:00:00 2001 From: chombier <> Date: Sat, 24 Aug 2002 10:18:12 +0000 Subject: [PATCH] added \wn macro to switch windows --- macssh/source/macros/macros.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/macssh/source/macros/macros.c b/macssh/source/macros/macros.c index 2084841..e518544 100755 --- a/macssh/source/macros/macros.c +++ b/macssh/source/macros/macros.c @@ -467,6 +467,13 @@ short sendmacro(struct WindRec *tw, short n) /* send macro number n */ case 'k': escape = 2; break; + case 'w': + // switch to window num + if ( s[1] >= '1' && s[1] <= '9') { + HandleMenuCommand( (connMenu << 16 | FIRST_CNXN_ITEM) + s[1] - '1', 0 ); + ++s; + } + break; default: if (*s <='9' && *s >='0' && pos <3) { num= num*8+( *s -'0');