From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 06:51:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A253916A4CE for ; Sun, 14 Mar 2004 06:51:48 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A8CA43D1D for ; Sun, 14 Mar 2004 06:51:47 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i2EEpfMN022644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Mar 2004 14:51:41 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2EEpfaH022643; Sun, 14 Mar 2004 14:51:41 GMT (envelope-from matthew) Date: Sun, 14 Mar 2004 14:51:41 +0000 From: Matthew Seaman To: Dan MacMillan Message-ID: <20040314145141.GD9984@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Dan MacMillan , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mJm6k4Vb/yFcL9ZU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: freebsd-questions@freebsd.org Subject: Re: kbdcontrol -f and escape sequences X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 14:51:48 -0000 --mJm6k4Vb/yFcL9ZU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > kbdcontrol -f 1 "\033[D\033[D" Try: kbdcontrol -f 1 `printf "\033[D\033[D"` Cheers, Matthew --=20 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 --mJm6k4Vb/yFcL9ZU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAVHF9dtESqEQa7a0RAuNtAJ0apHJ64SKSxSuq2yzY7z4QSqjl6QCgiqih NGJX2Ri61jEyjSDmBpmkS98= =wm9D -----END PGP SIGNATURE----- --mJm6k4Vb/yFcL9ZU--