Re: Color problem

Chris Green <[email protected]> Thu, 19 May 2005 21:18:25 +0100
Newsgroups gmane.network.tin.user
Message-ID <[email protected]>
On Thu, May 19, 2005 at 12:00:56PM -0400, Thomas Dickey wrote:
> On Thu, 19 May 2005, Chris Green wrote:
> 
> >Well I thought it was all sorted, however my new tin installation
> >seems to have a problem with the colours.
> >
> >I copied the .tin/tinrc file and all was well *except* for the default
> >colours, I have col_normal=-1 and col_back=-1 so that I get the
> >existing terminal screen colours.  This works on the system where I
> >originally had tin installed but on my home system tin changes the
> >colours.
> >
> >I have my terminal windows set up with a light grey background (almost
> >white) and use black text for normal text.  This works fine with mutt
> >and when running tin on the remote system but when running tin on my
> >home system tin changes the background to black and the foreground to
> >white.  Why does it do this with the variables set to -1?
> >
> >Where is tin getting these colours from?
> 
> The -1's represent default color, which is a feature of ncurses.
> Solaris and other vendor curses implementations don't support that.
> 
> There's some logic in tin's initialization to make it try to do the
> right thing when it's reading a -1 on a system that doesn't support
> it (but that's by reverting it to a black or white color as you have
> observed).
> 
Thanks!  That's what I needed, the default tin on slackware is
compiled with curses, compiling a version with ncurses instead has
fixed the problem.

-- 
Chris Green ([email protected])

    "Never ascribe to malice that which can be explained by incompetence."