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.45 by pcg, Sat Feb 21 20:33:39 2004 UTC vs.
Revision 1.48 by pcg, Sat Feb 21 21:15:03 2004 UTC

88 if (Input_Context) 88 if (Input_Context)
89 { 89 {
90 Status status_return; 90 Status status_return;
91 91
92#ifdef X_HAVE_UTF8_STRING 92#ifdef X_HAVE_UTF8_STRING
93 if (enc_utf8 && 0) 93 if (enc_utf8 && 0) // currently disabled, doesn't seem to work, nor is useful
94 len = Xutf8LookupString (Input_Context, &ev, (char *)kbuf, 94 len = Xutf8LookupString (Input_Context, &ev, (char *)kbuf,
95 KBUFSZ, &keysym, &status_return); 95 KBUFSZ, &keysym, &status_return);
96 else 96 else
97#endif 97#endif
98 98
358 case XK_KP_Right: /* \033Ov or standard */ 358 case XK_KP_Right: /* \033Ov or standard */
359 case XK_KP_Left: /* \033Ot or standard */ 359 case XK_KP_Left: /* \033Ot or standard */
360 if ((PrivateModes & PrivMode_aplKP) ? !shft : shft) 360 if ((PrivateModes & PrivMode_aplKP) ? !shft : shft)
361 { 361 {
362 STRCPY (kbuf, "\033OZ"); 362 STRCPY (kbuf, "\033OZ");
363 kbuf[2] = ("txvr"[keysym - XK_KP_Left]); 363 kbuf[2] = "txvr"[keysym - XK_KP_Left];
364 break; 364 break;
365 } 365 }
366 else 366 else
367 /* translate to std. cursor key */ 367 /* translate to std. cursor key */
368 keysym = XK_Left + (keysym - XK_KP_Left); 368 keysym = XK_Left + (keysym - XK_KP_Left);
371 case XK_Up: /* "\033[A" */ 371 case XK_Up: /* "\033[A" */
372 case XK_Down: /* "\033[B" */ 372 case XK_Down: /* "\033[B" */
373 case XK_Right: /* "\033[C" */ 373 case XK_Right: /* "\033[C" */
374 case XK_Left: /* "\033[D" */ 374 case XK_Left: /* "\033[D" */
375 STRCPY (kbuf, "\033[Z"); 375 STRCPY (kbuf, "\033[Z");
376 kbuf[2] = ("DACB"[keysym - XK_Left]); 376 kbuf[2] = "DACB"[keysym - XK_Left];
377 /* do Shift first */ 377 /* do Shift first */
378 if (shft) 378 if (shft)
379 kbuf[2] = ("dacb"[keysym - XK_Left]); 379 kbuf[2] = "dacb"[keysym - XK_Left];
380 else if (ctrl) 380 else if (ctrl)
381 { 381 {
382 kbuf[1] = 'O'; 382 kbuf[1] = 'O';
383 kbuf[2] = ("dacb"[keysym - XK_Left]); 383 kbuf[2] = "dacb"[keysym - XK_Left];
384 } 384 }
385 else if (PrivateModes & PrivMode_aplCUR) 385 else if (PrivateModes & PrivMode_aplCUR)
386 kbuf[1] = 'O'; 386 kbuf[1] = 'O';
387#ifdef MULTICHAR_SET 387#ifdef MULTICHAR_SET
388 //TODO: ?? 388 //TODO: ??

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines