Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 May 2005 17:46:08 -0400
From:      Tom McLaughlin <tmclaugh@sdf.lonestar.org>
To:        freebsd-questions@freebsd.org
Subject:   pdksh and binding escape sequences to shell commands
Message-ID:  <1114983968.1712.2.camel@compass.straycat.dhs.org>

next in thread | raw e-mail | index | archive | help
I'm wondering if any pdksh users can tell me how to bind an escape
sequence to a command.  I want to bind the Home key (^[OH) to
beginning-of-line.  I tried the following but I get a weird result.

bind '^[OH'=beginning-of-line

When I hit the home key the cursor jumps to the beginning of the line
but then prints an H.  For example:

$ foo
(hit Home key)
$ Hfoo  (The cursor now rests after the H.)

Anybody know how to handle getting something like the Home key bound to
a command?  Thanks.

Tom

-- 

BSD# Project - Porting Mono to FreeBSD
http://www.mono-project.com/Mono:FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1114983968.1712.2.camel>