Mercurial > hg > nnchat
comparison nnchat.c @ 332:f55f8309aa66
Support alt-[1..9] under Windows/PDCurses/SDL port for buffer switching.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 Jun 2011 03:41:32 +0300 |
parents | 26097c5b9b71 |
children | 64946336548a |
comparison
equal
deleted
inserted
replaced
331:26097c5b9b71 | 332:f55f8309aa66 |
---|---|
1574 c = ERR; | 1574 c = ERR; |
1575 } | 1575 } |
1576 else { | 1576 else { |
1577 if (optDebug) | 1577 if (optDebug) |
1578 printMsg(currWin, "Unhandled ESC key sequence 0x%02x\n", c); | 1578 printMsg(currWin, "Unhandled ESC key sequence 0x%02x\n", c); |
1579 continue; | |
1580 } | 1579 } |
1580 } else | |
1581 if (c >= 0x198 && c <= 0x1a0) { | |
1582 /* Chat window switching via Meta/Esc-[1..9] */ | |
1583 int win = c - 0x198; | |
1584 if (win < SET_MAX_WINDOWS && chatWindows[win] != NULL) { | |
1585 currWin = chatWindows[win]; | |
1586 update = updateMain = TRUE; | |
1587 } | |
1588 c = ERR; | |
1581 } | 1589 } |
1582 | 1590 |
1583 | 1591 |
1584 switch (c) { | 1592 switch (c) { |
1585 #ifdef KEY_RESIZE | 1593 #ifdef KEY_RESIZE |