Re: zvtwidget and vim



Cristiano De Michele <demichel na infn it> writes: 
>  case GDK_KP_0:  case GDK_KP_1:  case GDK_KP_2:  case GDK_KP_3:
>  case GDK_KP_4:  case GDK_KP_5:  case GDK_KP_6:  case GDK_KP_7:
>  case GDK_KP_8:  case GDK_KP_9:
>     /* if (appl_keypad) {
>       p+=sprintf (p, "\0330%c", 'p' + (event->keyval - GDK_KP_0));
>      } else {*/
>       *p++ = '0' + (event->keyval - GDK_KP_0);
>     /*}*/
>     break;
> 
> as you can see I simply removed the if/then/else statement,  
> but I don't know whether this is the right/best solution to this 
> problem, what's your opinion? could anyone help me?

Look at where appl_keypad gets set and why, apparently there's some
kind of escape sequence to toggle the numeric keypad. Look 
at what xterm does maybe and see if zvt gets it wrong.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]