delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/06/15:40:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_20,J_CHICKENPOX_44,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A01E77F.3050302@cwilson.fastmail.fm>
Date: Wed, 06 May 2009 15:39:43 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: WARNING: terminal is not fully functional
References: <a9a39a210905060616u7f5aafs5052342bc52c8a1a AT mail DOT gmail DOT com> <f60fe000905060844t136f5b83paf855d378bdc3cbb AT mail DOT gmail DOT com> <a9a39a210905060900p51bac023p78ab595593633f87 AT mail DOT gmail DOT com> <f60fe000905061017u2c308522i44222005b3ab8fb9 AT mail DOT gmail DOT com> <a9a39a210905061147t659a1b5flaf776dcdbb4244c AT mail DOT gmail DOT com>
In-Reply-To: <a9a39a210905061147t659a1b5flaf776dcdbb4244c@mail.gmail.com>
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

Frédéric Bron wrote:
>>> rxvt-x -> TERM=rxvt-cygwin
>>> rxvt-native -> TERM=rxvt-cygwin-native
>> That's the problem.  /etc/termcap has an entry for rxvt-cygwin-native,
>> but not for rxvt-cygwin.  What you want in that case is just
>> TERM=rxvt.
>>
>> Not sure where the bug is.  Either rxvt is setting TERM wrong, or you
>> have something in your shell initialization that's overriding it, or
>> /etc/termcap is missing an alias for the entry.

As the default termcap already includes an entry for rxvt-cygwin-native
as a convenience for cygwin users, it should probably be updated to also
include an entry for rxvt-cygwin.  The three entries:

rxvt
rxvt-cygwin-native
rxvt-cygwin

differ only in their ACS (line draw) character string, which only works
if you're using an OEM-recoded font...so, using TERM=rxvt is probably
good enough for both variants, for most people.  (I know of only one
OEM-recoded font: "Lucida ConsoleP")


> Its a fresh new install! Nothing about TERM in .bashrc, nor in .bash_profile.
> 
> I just have the following in my .Xdefaults:
> Rxvt*termName: rxvt
> Looks like it is ignored.
> 
> So is it a bug?

Maybe, but maybe not.  Rxvt looks for the .Xdefault using the following
construction:

getenv("HOME") + "/.Xdefaults"

It does NOT use getpwent() to figure out your home directory from
/etc/passwd.  Therefore, if you start rxvt "fron Windows" (e.g. using a
shortcut), then Rxvt can find ~/.Xdefaults ONLY if you have set %HOME%
using the Windows Environment settings tool.  My guess is that on your
brand new installation, you haven't done this -- so the behavior is
expected.

--
Chuck

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