Re: From 1.0 to 1.6.0, Whew!

Albert Schueller (
Fri, 11 Dec 1998 20:03:04 -0800

Quoting Francis GALIEGUE (
> Thanks for the tip :)

In my tip I forgot to mention that to attach a key to an actual menu entry
the syntax is analogous to the directory naming.  For instance, on of the
entries in my Shells submenu is the file local that contains the single

Exec "Local &L" exec xterm -n "Local" -T "Local" &

The &L defines L as the key that will execute this menu entry.

Thus to get a local window on my setup, F1 will pull up the startmenu, S
will select the Shells submenu, L will launch the Local shell.  No mouse.

> In the same kind, how can I bind the startmenu to a keystroke?
> What if I want to bind it to a key which is not defined in the keymap
> (I'm thinking about the three winslow keys aside of the space bar, with
> keycodes resp. 115, 116, 177 here)?
> Oh, and if you had any references about X programming... I read the
> source of asmem and wow, so much to do for such a little app :/ Indeed,
> I want to understand but don't know where to start... Man pages are no
> help as long as you don't get the concepts lying behind, and though the
> code is clear enough there are blackholes I want to fill :)

In /usr/local/share/afterstep there are a few files of the form base.xxbpp
where xx is the color depth.  Copy the one that your display is running
into ~/GNUstep/Library/Afterstep.  In that file is where I put my key
bindings.  Here is the one that pulls up the startmenu:

Key	F1	RA	N	Popup "Start"

If I hit F1 in any context, the startmenu will appear.  I'm not sure, but I
think if you have a Windoze keyboard, afterstep recognizes some of the
special keys.  For instance 

Key	Menu	RA	N	Popup "Start"

will bind the startmenu to the Windoze key that normally pulls up the
Windoze "Start" menu.  I'm not sure about this, but I ran into this in some
of the default feel files.  I don't have such a keyboard, so I can't test

As for the X programming, I don't know.  I don't do any application type
programming.  I'm just what you might consider a sophisticated user. :-)