delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/27/14:07:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 27 Oct 2004 14:06:47 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: kynn AT panix DOT com
cc: cygwin AT cygwin DOT com
Subject: Re: Problems with 'emacs -nw'
In-Reply-To: <200410271555.i9RFtYI29185@panix3.panix.com>
Message-ID: <Pine.GSO.4.61.0410271402100.21912@slinky.cs.nyu.edu>
References: <200410271555 DOT i9RFtYI29185 AT panix3 DOT panix DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 27 Oct 2004, kynn wrote:

> I just installed Cygwin on my desktop.  Everything works OK, except
> 'emacs -nw'.
>
> If I invoke Emacs in a Cygwin terminal as 'emacs -nw', the backspace
> key behaves like C-h, i.e. the prefix for Emacs' help commands (C-h
> still behaves like C-h).  More bizarrely, when I hit the combination
> C-x C-c, Emacs reports (via describe-key) that it sees C-x C-g.
>
> If I first ssh into a Linux host and run 'emacs -nw' there I get
> similar problems, but the details vary depending on how I establish
> the ssh connection.  If I connect by first starting an xterm with
> something like
>
>   xterm -e /usr/bin/bash -l &
>
> and then running 'ssh -Y' from the resulting shell, then when I run
> 'emacs -nw' on the remote host, Emacs sees both backspace and C-h
> as C-h.  If instead I start the ssh session with
>
>   xterm -e ssh -Y remote.host.net
>
> and run 'emacs -nw', then Emacs sees both backspace and C-h as "delete
> to the left of the cursor".  In both of these remote-host scenarios,
> C-x C-c quits Emacs as usual.
>
> If I start Emacs as an X application, whether on the local workstation
> or on a remote host, backspace, C-h, and C-x C-c work perfectly.  Also
> backspace works fine in every other terminal-based application (e.g.
> interactive bash, vi, etc.).
>
> How can I fix the mess with Emacs?
>
> I should point out that I log into remote hosts from many other
> systems other than the Cygwin system described here, so I need a
> solution that will not screw up the behavior of Emacs on remote
> hosts when I access them from local hosts other than Cygwin.
>
> Thanks!
> kj

Quoting from the emacs package announcement
(<http://cygwin.com/ml/cygwin-announce/2004-04/msg00000.html>):

	New users please be aware:

	- You will want "tty" included in your CYGWIN environment variable
	setting, and probably "binmode".  Look at the following for some
	documentation: http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html

I think that pretty much says it all...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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