delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/11/20:54:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_65,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A31A6F1.3030100@aim.com>
Date: Thu, 11 Jun 2009 20:53:05 -0400
From: Mark Harig <idirectscm AT aim DOT com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090320)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Using emacs in a terminal window
X-AOL-IP: 205.188.169.202
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

 > I'd say it's a bug that the rxvt max_colors entry is 8, since rxvt
 > does support 256 colours in its default setting. (And I notice it's
 > the same with xterm.) Don't know whether there are compatibility
 > concerns that require that.

Just to be clear, the default terminfo capability for Cygwin rxvt
is rxvt-cygwin-native, and that is what I used for comparison.
There is no corresponding 'rxvt-cygwin-256color'.

 > However, the correct way to address this is to set TERM to
 > rxvt-256color (or xterm-256color, as appropriate) rather than
 > Eterm-256color.

That sounds reasonable and appears to be a really good
suggestion (even if there is no 'rxvt-cygwin-256color').
 
I tried it and found that it appears to give a
color/font/underlining capability identical to Eterm-256color,
but it fixes a defect in Eterm-256color, namely, the mode
line was not being shaded appropriately depending on which
window in the frame was active.  Using TERM=rxvt-256color,
the mode-line highlighting now follows the active window,
as expected.  This appears to be the best default TERM
setting for terminal-mode Emacs running in Cygwin (native)
rxvt.

   env TERM=rxvt-256color emacs -nw ...

Thank you for the suggestion!

I will leave it to regular mintty+Emacs users to suggest
the best default TERM setting for that terminal emulator.

---


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