delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/05/22:52:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A29D9A7.1020004@aim.com>
Date: Fri, 05 Jun 2009 22:51:19 -0400
From: Mark Harig <idirectscm AT aim DOT com>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: Using emacs in a terminal window
X-AOL-IP: 64.12.78.138
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

An alternative to providing instructions for a workaround would be to
modify the default initialization files that are provided with the terminal
emulators.

For example, rxvt comes with the following file:

  $ cygcheck -l rxvt | grep app-defaults
  /etc/defaults/etc/X11/app-defaults/Rxvt

The post-installation script of rxvt could be changed to install the 
default, system
initialization file 'Rxvt' into the directory /etc/X11/app-defaults/.  
That file could
be modified to include the following lines:

   Rxvt.backspacekey:  ^?
   Rxvt.ttyModes: erase ^?

With those changes (modifying the file and copying it into 
/etc/X11/app-defaults),
rxvt should give the behavior that is expected for the backspace key and 
the Control-H
key combination, both at the shell prompt and in terminal-mode Emacs.

Similar solutions can likely be devised for xterm and mintty, but I do not
have those packages installed.  These solutions would need to be 
incorporated
into new versions of the terminal emulator packages, which would require 
the
agreement of those package maintainers.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019