Commits

James Rowe committed a642fe9

ansi: Support background colour escapes.

Comments (0)

Files changed (2)

ansi/sphinxcontrib/ansi.py

     35: 'magenta',
     36: 'cyan',
     37: 'white',
+    40: 'bg_black',
+    41: 'bg_red',
+    42: 'bg_green',
+    43: 'bg_yellow',
+    44: 'bg_blue',
+    45: 'bg_magenta',
+    46: 'bg_cyan',
+    47: 'bg_white',
     }
 
 

ansi/sphinxcontrib/black-on-white.css

 .ansi-white.ansi-bold {
     color: #ffffff;
 }
+
+.ansi-bg_black {
+    background-color: #000000;
+}
+
+.ansi-bg_red {
+    background-color: #b21717;
+}
+
+.ansi-bg_green {
+    background-color: #17b217;
+}
+
+.ansi-bg_yellow {
+    background-color: #b26717;
+}
+
+.ansi-bg_blue {
+    background-color: #1717b2;
+}
+
+.ansi-bg_magenta {
+    background-color: #b217b2;
+}
+
+.ansi-bg_cyan {
+    background-color: #17b2b2;
+}
+
+.ansi-bg_white {
+    background-color: #b2b2b2;
+}
+