define key with return

From: Dave Stern - Former Rocket Scientist (dave@umiacs.umd.edu)
Date: Thu Jun 17 2004 - 08:22:52 EDT


I want to map a key to run some program and not have to hit <CR>.
One way to do this is to

alias z 'ps -elf'
xmodmap -e "keycode 23 = z"

So keycode 23 (F7) is mapped to "z" which is an alias to the command I
wish to run. But I still have to press <CR>. I thought there was a way
to add a <CR> to keycode mapping. Anyone remember what it is?
For extra credit, the above works but you lose the ability to type a
"z". Is there a more elegant way to map a command to a key?

TIA

 =-=-=-=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-=
 David Stern University of Maryland
                Institute for Advanced Computer Studies
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:53 EDT