jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: xjed and keypad, pc-select-mode


On Wednesday 14 August 2002 18:37, you wrote:
> On Thu, 8 Aug 2002 15:54:45 +0200 wrote Nicolas Burrus 
<nicolas.burrus@xxxxxxxxxxxxx>:
> > My solution for Ctrl-Shift bindings use Xwindow keysyms :
>
> Nice idea, I have some suggestions for improvement though:
> > variable KB_Left    = 0xFF51;
> > variable KB_Right   = 0xFF53;
> > variable KB_Down    = 0xFF54;
>
> ...
>
> It would be nice to have these for all the X keycodes (is there a list of
> them somewhere). Also, I wouldd prefer them in variables with some X in the
> name, or even better in an associative array, like
>   variable X_key = Assoc_Type;
>   X_key["Left"]  = 0xFF51;
>   X_key["Right"] = 0xFF53;
>
> and so on, for all the keys defined in keydefs.

I think we should get keycode directly from /usr/include/X11/keysymdef.h, so 
that we would be more standard and compatible. So we would have XK_XXX 
defined and usable. Any idea to do it by a simple way ?

> > % CS stands for Ctrl-Shift
> > variable Key_Ctrl_Shift_Left  = "CSLeft";
> > variable Key_Ctrl_Shift_Right   = "CSRight";
> > variable Key_Ctrl_Shift_Up      = "CSUp";
>
> ...
>
> This seems pretty nonstandard and may couse problems
> (does your <C> key work after binding this to a function?)

No, I have 

variable Key_Ctrl_Shift_Left  = "\xCSLeft";

in my real code, so that it doesn't interfere with control, but this is ugly 
and just for quick testing purposes, it is completely nonstandard.

> Looking at keydefs and the undocumented x_set_keysym feature,
> I suppose something like
>
>   variable Key_Ctrl_Shift_Home        = "\e[1%";
>
> might be a better choice. I don't know about a good one for Left, Right,
> Up, Down, though.

I don't know, I'll check it.

-- 
Nicolas Burrus

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]