Hi nick65go
I did some more work on the ANSI color escape sequence patch.
I have not posted it to the repo yet.The person that created the patch didn't do a good job on the
color handling, so I thought I'd try to fix that.
I displayed the pre-defined normal and bright colors in aterm, took
a screenshot, and used gimp2 to get their RGB values.
Then I wrote a new routine to handle escape sequences that
match a terminal as closely as possible.
The text colors now display correctly:
Text with default, white, and black background:
This one should be self explanatory:
Supported escape codes include:
8 normal colors for foreground and background.
Enable bold text, selects bright colors for foreground.
Disable bold text, selects normal colors for foreground.
Enable underlined text.
Disable underlined text.
Reset all settings to default values.
Differences between terminal and fltk behavior are:
terminal:
foreground defaults to white.
background defaults to black.
escape sequences remain in effect until another escape sequence changes something.
fltk:
foreground defaults to black.
background defaults to a light blue.
escape sequences get reset to default values when a newline character is encountered.