[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: F2 key programming



On Mon, Sep 18, 2000 at 12:14:38PM +0200, Thomas Guettler wrote:

> On Sun, Sep 17, 2000 at 09:43:46PM +0100, ivan wrote:
> > I'd like to be able to press the F2 key when in X-windows  xterm instead of
> > entering
> > " | more " (par exemple). What is the easiest  way of achieving this? I've
> > tried various
> > things like editing /etc/X11/Xresources/xterm to no avail.
> > Any help much appreciated. Ivan
> 
> Have a look at the readline documentation. I think it is possible.
> Please mail me your solution. I am interested in it, too.

Really easy... add this to your ~/.inputrc:
	"\e[[B":" | more"
and if you want that it executes the command inmediately after this:
	"\e[[B":" | more\C-m"
so a newline will be sent to the console.

HTH
Julio


> 
> 
> -- 
> Thomas Guettler
> Office: <guettli_NoSpam_interface-business.de> www.interface-business.de
> Private:<guettli_NoSpam_gmx.de>  http://yi.org/guettli
> (Replace _NoSpam_ with @)
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 



Reply to: