From owner-freebsd-questions@FreeBSD.ORG Sun May 1 21:46:05 2005 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 AB36C16A4CE for ; Sun, 1 May 2005 21:46:05 +0000 (GMT) Received: from straycat.dhs.org (c-24-60-174-16.hsd1.ma.comcast.net [24.60.174.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 145FD43D41 for ; Sun, 1 May 2005 21:46:03 +0000 (GMT) (envelope-from tmclaugh@sdf.lonestar.org) Received: from compass.straycat.dhs.org (compass.straycat.dhs.org [192.168.1.48]) by straycat.dhs.org (8.13.0/8.13.0) with ESMTP id j41LlfZf011895 for ; Sun, 1 May 2005 17:47:41 -0400 (EDT) From: Tom McLaughlin To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Sun, 01 May 2005 17:46:08 -0400 Message-Id: <1114983968.1712.2.camel@compass.straycat.dhs.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: pdksh and binding escape sequences to shell commands 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, 01 May 2005 21:46:05 -0000 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