added \wn macro to switch windows

This commit is contained in:
chombier 2002-08-24 10:18:12 +00:00
parent 705e72cad3
commit ccaf932ad3
1 changed files with 7 additions and 0 deletions

View File

@ -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');