[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Why not reset color for cout by default?

From: Juergen Sauermann
Subject: Re: [Bug-apl] Why not reset color for cout by default?
Date: Thu, 1 Feb 2018 16:56:23 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hi Elias,

I suppose that is still the case (because I have not changed that).

What I did change is the (commented-out) preference file template and
the default colors if everything else failed, e.g. TERM variable not set,
or curses not usable.

Best Reghards,
/// Jürgen

On 02/01/2018 04:22 PM, Elias Mårtenson wrote:
I thought the default was to use the terminfo data? I recall submitting a patch for that long ago? 

On 1 Feb 2018 11:07 pm, "Juergen Sauermann" <address@hidden> wrote:
Hi Clouds,

thanks, fixed in SVN 1044.

Please note that there is a zoo of vt100 compatible terminals around that differ
considerably in terms of the colour schemes that they support. The only reliable
way to handle this in a "portable" way is via the preferences files. Anything else
is merely a matter of luck and therefore the default values used by GNU APL in
the absence of a preferences file are not really relevant.

Best Regards,
/// Jürgen

On 02/01/2018 11:03 AM, Clouds Flowing wrote:
Related thread: https://lists.gnu.org/archive/html/bug-apl/2013-10/msg00003.html

Now I see it is using `char Output::color_COUT[MAX_ESC_LEN] = CSI "0;30;49m";` in code, it is strange that reset background while set foreground to black.
I think it quite normal to use default (reset color) color for std::cout, i.e. use `CSI "0;39;49m"`.

I know it could be set in /etc/gnu-apl.d/preference, while we are talking about the default behavior.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]