ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.192 by root, Fri Feb 4 11:41:23 2005 UTC vs.
Revision 1.195 by root, Thu Feb 17 12:06:21 2005 UTC

52 52
53#ifdef KEYSYM_RESOURCE 53#ifdef KEYSYM_RESOURCE
54# include "keyboard.h" 54# include "keyboard.h"
55#endif 55#endif
56 56
57#include <cwchar>
58#include <csignal> 57#include <csignal>
59 58
60/*----------------------------------------------------------------------*/ 59/*----------------------------------------------------------------------*/
61 60
62#define IS_CONTROL(ch) !((ch) & 0xffffff60UL) 61#define IS_CONTROL(ch) !((ch) & 0xffffff60UL)
277 * use Num_Lock to toggle Keypad on/off. If Num_Lock is off, allow an 276 * use Num_Lock to toggle Keypad on/off. If Num_Lock is off, allow an
278 * escape sequence to toggle the Keypad. 277 * escape sequence to toggle the Keypad.
279 * 278 *
280 * Always permit `shift' to override the current setting 279 * Always permit `shift' to override the current setting
281 */ 280 */
282 shft = (ev.state & ShiftMask); 281 shft = ev.state & ShiftMask;
283 ctrl = (ev.state & ControlMask); 282 ctrl = ev.state & ControlMask;
284 meta = (ev.state & ModMetaMask); 283 meta = ev.state & ModMetaMask;
285 284
286 if (numlock_state || (ev.state & ModNumLockMask)) 285 if (numlock_state || (ev.state & ModNumLockMask))
287 { 286 {
288 numlock_state = (ev.state & ModNumLockMask); 287 numlock_state = (ev.state & ModNumLockMask);
289 PrivMode ((!numlock_state), PrivMode_aplKP); 288 PrivMode ((!numlock_state), PrivMode_aplKP);
3177 { 3176 {
3178 switch (priv) 3177 switch (priv)
3179 { 3178 {
3180 case '>': 3179 case '>':
3181 if (ch == CSI_DA) /* secondary device attributes */ 3180 if (ch == CSI_DA) /* secondary device attributes */
3182 tt_printf ("\033[>%d;%-.8s;0c", 'R', VSTRING); 3181 tt_printf ("\033[>%d;%c%c;0c", 'U', VERSION[0], VERSION[2]);
3183 break; 3182 break;
3184 case '?': 3183 case '?':
3185 if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't') 3184 if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't')
3186 process_terminal_mode (ch, priv, nargs, arg); 3185 process_terminal_mode (ch, priv, nargs, arg);
3187 break; 3186 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines