From owner-freebsd-current@FreeBSD.ORG Fri Apr 1 03:39:45 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4C3D106566C; Fri, 1 Apr 2011 03:39:45 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id 73BC48FC12; Fri, 1 Apr 2011 03:39:43 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.44]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p313deSc056838 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 1 Apr 2011 14:09:40 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <4D94CA5C.9050007@freebsd.org> Date: Fri, 1 Apr 2011 14:09:40 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: <8E0411B7-7FD8-4EDF-85E7-4BA84FF6C266@gsoft.com.au> References: <4D94CA5C.9050007@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.1082) X-Spam-Score: -2.51 () ALL_TRUSTED,BAYES_00,T_RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-current Current Subject: Re: bsdinstaller / partedit emacs key patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 03:39:45 -0000 On 01/04/2011, at 5:09, Nathan Whitehorn wrote: > On 03/29/11 20:50, Daniel O'Connor wrote: >> Hi, >> I noticed that the entry widgets in the bsdinstaller label editor = don't understand various "emacs keys" (eg C-a, C-d, C-e). >>=20 >> Here's a patch which adds the basics.. Unfortunately dialog doesn't = have a "key" for delete all, delete left or delete right so I couldn't = add C-u, C-w or C-k. >>=20 >> Note that you can't just call dlg_parse_bindkey("* ^a BEGIN") because = dialog modifies the string which crashes (seg fault). >=20 > I'm happy to put this in, but it would be nice if you could try to get = this into upstream dialog to avoid inconsistencies in various parts of = the installation. I suspect it would be pretty bikeshed prone :( Is there a dialog mailing list? My google-fu failed and I can't find = one. I suppose the alternative is to install a global rc file (ie = /etc/dialogrc) with the following contents.. bindkey * ^a BEGIN bindkey * ^d DELETE_RIGHT bindkey * ^e FINAL -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C