Skip to content
Snippets Groups Projects
Commit dc969129 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the Ctrl-A background color mapping

I don't remember why these aren't in CGA order
parent c0829a1e
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,7 @@ function printcolor(color) {
if (this.opt == undefined || !opt.ansi) {
var fgcolors = ["K", "B", "G", "C", "R", "M", "Y", "W", "HK", "HB", "HG", "HC", "HR", "HM", "HY", "HW"]; // Normal/Bright
var bgcolors = ["0", "1", "2", "3", "4", "5", "6", "7"]; // Backgrounds (normal only for 8 colors)
var bgcolors = ["0", "4", "2", "6", "1", "5", "3", "7"]; // Backgrounds (normal only for 8 colors)
out += "\x01" + fgcolors[fg].split("").join("\x01");
out += "\x01" + bgcolors[bg];
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment