summaryrefslogtreecommitdiff
path: root/js/color.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/color.js')
-rw-r--r--js/color.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/js/color.js b/js/color.js
index 0ba29e7..c518327 100644
--- a/js/color.js
+++ b/js/color.js
@@ -66,3 +66,41 @@ var css_reverse_lookup = {}
Object.keys(css_lookup).forEach(function(color){
css_reverse_lookup[ css_lookup[color].charCodeAt(0) - 65 ] = color
})
+
+var ansi_fg = [
+ 97, // white
+ 30, // black
+ 34, // dark blue
+ 32, // green
+ 91, // light red
+ 31, // dark red
+ 35, // purple
+ 33, // "dark yellow" (orange?)
+ 93, // "light yellow"
+ 92, // light green
+ 36, // cyan (teal?)
+ 96, // light cyan
+ 94, // light blue
+ 95, // light magenta
+ 90, // dark gray
+ 37, // light gray
+]
+
+var ansi_bg = [
+ 107, // white
+ 40, // black
+ 44, // dark blue
+ 42, // green
+ 101, // light red
+ 41, // dark red
+ 45, // purple
+ 43, // yellow (orange)
+ 103, // light yellow
+ 102, // light green
+ 46, // cyan (teal?)
+ 106, // light cyan
+ 104, // light blue
+ 105, // light magenta
+ 100, // dark gray
+ 47, // light gray
+]