Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3F44C15A.1040500@ianbrandt.com> Date: Thu, 21 Aug 2003 08:55:54 -0400 From: Ian Brandt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cygwin Subject: Re: Map Backspace to ASCII DEL? References: <3F444AC6 DOT 7090900 AT ianbrandt DOT com> <113239815566 DOT 20030821121953 AT familiehaase DOT de> In-Reply-To: <113239815566.20030821121953@familiehaase.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Gerrit P. Haase wrote: > I believe that this is already included in the FAQ, anyway: > put a file called .inputrc into your home directory and add these lines: > > # This file is read by the 'readline' library > # (the library which bash uses for its command- > # line editing facility) > > # Make Home work > "\e[7~": beginning-of-line > # Make End work > "\e[8~": end-of-line > # Make Delete work > "\e[3~": delete-char > # make Insert work > "\e[2~": paste-from-clipboard > > # "\C-h": backward-delete-char > # "\C-?": backward-delete-char > > Backspace works for me out of thebox, so I cannot say which one will > work for you. > > This works for bash and probably other shells that use readline. Hi Gerrit, Thanks, but like stty this is too high level. This only tells applications that use the readline library what to do when they receive a certain character or string from the terminal. Readline, termcap/terminfo, and stty settings only change how the applications that use them react to a certain character/string. I'm looking to change the character/string that is sent to them for a particular keycode. In general it is a lot easier and there is a lot less to configure if the ASCII DEL character is sent for the Backspace keycode, and this also frees ASCII BS, or ^H, to be used by applications such as emacs. I would like to use Cygwin as my terminal and via ssh access several different machines, so minimizing the configuration required at each system is important. If I was on a Linux box I would accomplish this locally by changing the keymap using loadkeys, but this doesn't appear to be a part of the Cygwin port (and for all I know it may not be sensible on account of the Cygwin/Windows low-level details?). Just FYI for more info see: http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-2.html Thanks, Ian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/