From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 07:42: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 9A22D16A4CE for ; Sun, 14 Mar 2004 07:42:48 -0800 (PST) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82F5A43D1F for ; Sun, 14 Mar 2004 07:42:48 -0800 (PST) (envelope-from flowers@users.sourceforge.net) Received: from pd2mr3so.prod.shaw.ca (pd2mr3so-ser.prod.shaw.ca [10.0.141.108])2003))freebsd-questions@freebsd.org; Sun, 14 Mar 2004 08:42:48 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca (pn2ml2so-qfe0.prod.shaw.ca [10.0.121.146]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HUK00BABOZC8D@l-daemon> for freebsd-questions@freebsd.org; Sun, 14 Mar 2004 08:42:48 -0700 (MST) Received: from sirius (h68-144-47-89.cg.shawcable.net [68.144.47.89]) 2003))freebsd-questions@freebsd.org; Sun, 14 Mar 2004 08:42:48 -0700 (MST) Date: Sun, 14 Mar 2004 08:42:46 -0700 From: Dan MacMillan In-reply-to: <20040314145141.GD9984@happy-idiot-talk.infracaninophile.co.uk> To: Matthew Seaman Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal 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 15:42:48 -0000 Excellent! That does it. Thank you very much for your help. - Danny MacMillan -----Original Message----- From: Matthew Seaman 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