Date: Sun, 14 Mar 2004 14:51:41 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Dan MacMillan <flowers@users.sourceforge.net> Cc: freebsd-questions@freebsd.org Subject: Re: kbdcontrol -f and escape sequences Message-ID: <20040314145141.GD9984@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <FGEIJLCPFDNMGDOKNBABOEMBCHAA.flowers@users.sourceforge.net> References: <FGEIJLCPFDNMGDOKNBABOEMBCHAA.flowers@users.sourceforge.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAVHF9dtESqEQa7a0RAuNtAJ0apHJ64SKSxSuq2yzY7z4QSqjl6QCgiqih
NGJX2Ri61jEyjSDmBpmkS98=
=wm9D
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040314145141.GD9984>
