Re: The humble and other editing keys

2003-02-15 Thread Igor Pechtchanski
On Sat, 15 Feb 2003, Jon LaBadie wrote: > On Fri, Feb 14, 2003 at 11:31:38PM -0800, David Christensen wrote: > > Elfyn McBratney wrote on 14 Feb 2003 18:18:47 - > > > In bash you can add the following > > > > > > # DEL key in bash > > > "\e[3~": delete-char > > > > > > to your ~/.inputrc or yo

Re: The humble and other editing keys

2003-02-15 Thread Randall R Schulz
David, Key sequence generation is not a shell issue, it's defined by the terminal emulator which gets key-codes from the OS and generates sequences of bytes to send through a pseudo-tty to whatever application (shell or otherwise) that's reading. Likewise, it interprets things like cursor-addr

Re: The humble and other editing keys

2003-02-15 Thread Jon LaBadie
On Fri, Feb 14, 2003 at 11:31:38PM -0800, David Christensen wrote: > Elfyn McBratney wrote on 14 Feb 2003 18:18:47 - > > In bash you can add the following > > > > # DEL key in bash > > "\e[3~": delete-char > > > > to your ~/.inputrc or your /etc/inputrc file to get a functioning DEL > > ke. >

Re: The humble and other editing keys

2003-02-15 Thread Thorsten Kampe
* Lee D. Rothstein (03-02-14 20:26 +0100) > (I have the environment variable, 'EDITOR', set to 'TextPad".) TextPad is * a Win32 GUI app and * almost certainly doesn't understand POSIX paths. Thorsten -- Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory) Content-Transfer-Warn

Re: The humble and other editing keys

2003-02-14 Thread Elfyn McBratney
> Elfyn McBratney wrote on 14 Feb 2003 18:18:47 - > > In bash you can add the following > > > > # DEL key in bash > > "\e[3~": delete-char > > > > to your ~/.inputrc or your /etc/inputrc file to get a functioning DEL > > ke. > > Thanks! I've been wondering about that for far too long. :-) > >

Re: The humble and other editing keys

2003-02-14 Thread David Christensen
Elfyn McBratney wrote on 14 Feb 2003 18:18:47 - > In bash you can add the following > > # DEL key in bash > "\e[3~": delete-char > > to your ~/.inputrc or your /etc/inputrc file to get a functioning DEL > ke. Thanks! I've been wondering about that for far too long. :-) BTW I read the read

Re: The humble and other editing keys

2003-02-14 Thread Thorsten Kampe
* Elfyn McBratney (03-02-14 19:52 +0100) > One thing that I forgot: Bash does have a system-wide inputrc but you have > to define an environment variable to the location of the file, INPUTRC > > export INPUTRC=/etc/inputrc bash doesn't have a "system-wide inputrc" (although you /could/ make one

Re: The humble and other editing keys

2003-02-14 Thread Randall R Schulz
Lee, We don't approve of all that humor hereabouts. This one _is_ documented in the BASH manual page. Here's the binding I use: "\M-[3~": delete-char # Delete When you find this Readline action in the BASH manual page, you'll find all the other goodies you can program into B

Re: The humble and other editing keys

2003-02-14 Thread Elfyn McBratney
> > * ~/.inputrc works. /etc/inputrc doesn't. Why? > > Aaaah my cockpit error :-) Bash only checks for the existence of the > user's or individuals' readline initialisation file. > > > * Is there documentation for this? Specific to Cygwin? Or, > >not necessary due to complete compatibility.

Re: The humble and other editing keys

2003-02-14 Thread Elfyn McBratney
> * ~/.inputrc works. /etc/inputrc doesn't. Why? Aaaah my cockpit error :-) Bash only checks for the existence of the user's or individuals' readline initialisation file. > * Is there documentation for this? Specific to Cygwin? Or, >not necessary due to complete compatibility. Does >t

Re: The humble and other editing keys

2003-02-14 Thread Lee D. Rothstein
Elfyn, Thanks. See my comments and further questions, below. At 2003-02-14 06:18 PM +, Elfyn McBratney wrote: > I want to do what any self-respecting > should do, namely delete the character at the cursor. In bash you can add the following # DEL key in bash "\e[3~": delete-char to you

Re: The humble and other editing keys

2003-02-14 Thread Elfyn McBratney
> Since at least 1979, when I started using Warren Montgomery's > Emacs on System III UNIX, I have been annoyed with DEC's and > RMS's treatment of the (or key as they called > it. In those days, I "reconfigured" my keyboard to fix this > abortion. > > I want to do what any self-respecting sho

Re: The humble and other editing keys

2003-02-14 Thread Christopher Faylor
On Fri, Feb 14, 2003 at 07:12:34PM +0100, Thorsten Kampe wrote: >* Lee D. Rothstein (03-02-14 18:44 +0100) >> Since at least 1979, when I started using [...] > >> I want to do what any self-respecting should do, >> namely delete the character at the cursor. >> >> Anyone know how to do this with

Re: The humble and other editing keys

2003-02-14 Thread Thorsten Kampe
* Lee D. Rothstein (03-02-14 18:44 +0100) > Since at least 1979, when I started using [...] > I want to do what any self-respecting should do, > namely delete the character at the cursor. > > Anyone know how to do this with Cygwin command line editing? Cygwin doesn't have any command line edit

The humble and other editing keys

2003-02-14 Thread Lee D. Rothstein
Since at least 1979, when I started using Warren Montgomery's Emacs on System III UNIX, I have been annoyed with DEC's and RMS's treatment of the (or key as they called it. In those days, I "reconfigured" my keyboard to fix this abortion. I want to do what any self-respecting should do, namely