🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34823

Re: Color bug in slrn 0.9.4.1 ?

#34823
From: John E. Davis
Date: Thu, 03 Jul 1997 00:00
34 lines
1643 bytes
On 03 Jul 1997 11:59:37 EDT, Vikas Agnihotri <vikas@insight.att.com>
wrote:
>I expected to get the colors as defined by my .Xresources file i.e. 
>
>white=color7, blue=color4, brightmagenta=color14, cyan=color6

slrn knows nothing about .Xresources.  It communicates with the
terminal via escape sequences and it is up to the terminal to turn
those escape sequences into colors.  With that said, slrn/slang uses
the mapping:

    black     --> ESC [ X 0
    red       --> ESC [ X 1
    green     --> ESC [ X 2
    brown     --> ESC [ X 3
    blue      --> ESC [ X 4
    magenta   --> ESC [ X 5
    cyan      --> ESC [ X 6
    lightgray --> ESC [ X 7
    
where `X' is 3 for foreground and 4 for background.  The bright
versions of those colors are just those colors displayed in bold,
e.g., yellow (bright brown) is

    yellow --> ESC [ 1 m ESC [ 3 3

Again, what the terminal does with those escape sequences is unknown
to slrn.  I suspect that color3 in your .Xresources file refers to
brown.

--John

Technical Details
Message-ID: <slrn5ro2n3.3lj.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn5rnj3a.f5k.vikas@joshua.insight.att.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5ro2n3.3lj.davis@aluche.mit.edu>
Subject: Re: Color bug in slrn 0.9.4.1 ?
Date: Thu, 03 Jul 1997 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn5rnj3a.f5k.vikas@joshua.insight.att.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 254511655
Organization: Center for Space Research
Reply-To: davis@space.mit.edu
Newsgroups: news.software.readers