View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 03:34 PM
Glenn
 
Posts: n/a
Default Re: reprogramming the 5c keyboard 'blank' key?

Arthur Wouk wrote:
> in reading mail digests on my suns, i often want to skip through to
> each Subject: line in turn, reading a bit, and then move on. it
> would be convenient to have /^Subj/ be available on a key. the blank
> key next to the help key is an appropriate target for this. is it
> programmable?


That key is programmable to emit a single keycode (as defined in
/usr/include/X11/keysymdef.h), not a string. For instance:

/usr/openwin/bin/xmodmap -e 'keycode 22 = currency'

You would then have to set up some kind of macro in your mail reader
to translate this symbol (¤ in this example) into whatever string
does your desired task. For greatest convenience, set up the keyboard
mapping so it is executed on every login (CDE in this example):

% cat ~/.dt/sessions/sessionetc
#!/bin/sh
XDIR=/usr/openwin/bin
# Make the blank key next to the Help key on a Sun Type 5 UNIX
# keyboard emit something useful and unique that we can refer to
# in applications like FrameMaker.
$XDIR/xmodmap -e 'keycode 22 = blank'

Reply With Quote