mirror of https://github.com/macssh/macssh.git
added \wn macro to switch windows
This commit is contained in:
parent
705e72cad3
commit
ccaf932ad3
|
@ -467,6 +467,13 @@ short sendmacro(struct WindRec *tw, short n) /* send macro number n */
|
||||||
case 'k':
|
case 'k':
|
||||||
escape = 2;
|
escape = 2;
|
||||||
break;
|
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:
|
default:
|
||||||
if (*s <='9' && *s >='0' && pos <3) {
|
if (*s <='9' && *s >='0' && pos <3) {
|
||||||
num= num*8+( *s -'0');
|
num= num*8+( *s -'0');
|
||||||
|
|
Loading…
Reference in New Issue