bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] ANSI Colors and the system preferences file


From: Juergen Sauermann
Subject: Re: [Bug-apl] ANSI Colors and the system preferences file
Date: Tue, 02 Dec 2014 13:21:48 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0

Hi David,

thanks, fixed in SVN 515.

/// Jürgen


On 12/02/2014 05:30 AM, David Lamkins wrote:
I believe that some of the example ANSI escape sequences encoded in gnu-apl.d/preferences are partially incorrect.

In particular, any sequence containing
ESC [ ... 38 ... m
or
ESC [ ... 48 ... m
is not valid as written in gnu-apl.d/preferences .

Referring to http://invisible-island.net/xterm/ctlseqs/ctlseqs.html, we see that
the 38 and 48 are prefixes for foreground and background RGB colors (as used correctly in src/Output.cc).

It seems that xterm manages to keep going despite the incorrect sequence.

I suggest replacing the 38 and 48 sequences (hex 33 38 and 34 38) with 39 and 49 (hex 33 39 and 43 49). These choose the terminal's default foreground and background colors.

Also, the RESET-SEQUENCE can be written universally as

1b 5b 30 3b 33 39 3b 34 39 6d

(ESC [ 0 ; 39 ; 49 m) -- this clears attributes and resets the foreground and background colors to the terminal defaults.

--


reply via email to

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