[PATCH] Make sure terminfo color tests work the same on all platforms

Christian Ebert blacktrash at gmx.net
Sun Jun 26 20:01:16 CDT 2011


* Mads Kiilerich on Monday, June 27, 2011 at 01:22:32 +0200
> Danek Duvall wrote, On 06/26/2011 02:30 AM:
>> # HG changeset patch
>> # User Danek Duvall<duvall at comfychair.org>
>> # Date 1309048141 25200
>> # Node ID 03a164145bcb6b99aff61a14b563ad53ae52a2df
>> # Parent  13011330885637d05262f2abceb8098fe4b8884b
>> Make sure terminfo color tests work the same on all platforms.
> 
> (btw: The subject line should according to ContributingChanges start
> with 'tests:' and not end with '.'. A short description of what
> problem this solves and why it was solved this way would be nice too.)
> 
> Yes, this works - at least on one solaris and one linux machine. Can
> someone confirm that it works on other platforms too, such as OS/X and
> other BSDs and AIX?

Passes on Mac OS 10.5.8. But there wasn't a problem in the first
place when you had xterm-color as $TERM. I have to set mode=ansi
because most of the time I work with screen in an xterm -
TERM=screen-256color.

For Terminal.app I use nsterm-16color, and there you need to set
ansi as well.

So, yes, the test shows that if you happen to run the right TERM
the test passes on Mac OS.

c
-- 
\black\trash movie    _MORALISK  ANSTALT_
                        "Nix verstanden."

--->> http://www.blacktrash.org/underdogma/moraliskanstalt.php


More information about the Mercurial-devel mailing list