kbdcontrol -f and escape sequences
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sun Mar 14 06:51:48 PST 2004
On Sat, Mar 13, 2004 at 11:18:42PM -0700, Dan MacMillan wrote:
> I'm having some trouble using kbdcontrol to redefine function keys to
> strings that include escape sequences. For example, suppose I want to
> redefine "F1" to be equivalent to pressing the left arrow key twice in a
> row. I naiively thought this would work:
>
> kbdcontrol -f 1 "\033[D\033[D"
Try:
kbdcontrol -f 1 `printf "\033[D\033[D"`
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040314/f67d3194/attachment.bin
More information about the freebsd-questions
mailing list