[accerciser] ipython_view: Add more ANSI color cases



commit 3048bea3bf76aea6851e8320f1795a984fbe72e0
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Thu Jul 28 02:26:15 2022 +0200

    ipython_view: Add more ANSI color cases
    
    ipython 8.0 seems to be using more than the very standard ANSI 16 colors.
    I didn't find exactly where this is coming from, so just adding the few
    cases that show up on exception raises.

 plugins/ipython_view.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/ipython_view.py b/plugins/ipython_view.py
index a8faf93..86ebbb8 100755
--- a/plugins/ipython_view.py
+++ b/plugins/ipython_view.py
@@ -388,7 +388,9 @@ class ConsoleView(gtk.TextView):
                   '1;30': 'DarkGray',  '1;31': 'DarkRed',
                   '1;32': 'SeaGreen',  '1;33': 'Yellow',
                   '1;34': 'LightBlue', '1;35': 'MediumPurple',
-                  '1;36': 'LightCyan', '1;37': 'White'}
+                  '1;36': 'LightCyan', '1;37': 'White',
+                  '38;5;241': 'Gray',
+                  '39': 'Black' }
 
   def __init__(self):
     '''


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]