From dc96912918c68ce800418c40ceb1fb699fc3e0dc Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Fri, 25 Apr 2025 02:00:03 -0700
Subject: [PATCH] Fix the Ctrl-A background color mapping

I don't remember why these aren't in CGA order
---
 exec/load/tdfonts_lib.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 exec/load/tdfonts_lib.js

diff --git a/exec/load/tdfonts_lib.js b/exec/load/tdfonts_lib.js
old mode 100644
new mode 100755
index 80ef320267..8fc24aac47
--- a/exec/load/tdfonts_lib.js
+++ b/exec/load/tdfonts_lib.js
@@ -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  {
-- 
GitLab