On Mon, 2003-06-16 at 11:27, Andrew Steele wrote:
> On Mon, Jun 16, 2003 at 09:52:14AM -0400 or thereabouts, Thomas J. Baker wrote:
> > Would it be possible (or is it already possible) to make the center
> > button of the cursor pad type a return in rxvt? This would make it
> > possible to scroll through the command history and execute commands
> > without having to have the keyboard showing. If it is possible, maybe it
> > should be the default?
>
> I was trying to do this just yesterday.
>
> The way I did it:
>
> Created a .xmodmap file with one line -
>
> keycode 104 = Return
>
> The default value is KP_Enter instead of Return, ie the Keypad enter.
> I did try to do some stuff with the .Xdefaults to translate KP_Enter
> to send a "\n" but couldn't so decided on doing it this way.
>
> This method does mean it applies to all applications not just rxvt.
>
> Hope this helps
> Andrew
Thanks. Sometimes it's easy to forget that it's just X! I put an xmodmap
-e "keycode 104 = Return" in my login scripts and everything works like
a charm.
tjb
-- ======================================================================= | Thomas Baker email: tjb@unh.edu | | Systems Programmer | | Research Computing Center voice: (603) 862-4490 | | University of New Hampshire fax: (603) 862-1761 | | 332 Morse Hall | | Durham, NH 03824 USA http://wintermute.sr.unh.edu/~tjb | =======================================================================
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:32 EDT