aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/utils
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-05-11 14:26:05 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-05-11 14:35:40 +0300
commitebf1daa4c46f1c48865e6db613db68751770ccea (patch)
treed58d354f25c8106d5add16f6e2979d0e353e0318 /contrib/python/ipython/py3/IPython/utils
parent8173b4515355158a5787dcb12aa6036874776101 (diff)
downloadydb-ebf1daa4c46f1c48865e6db613db68751770ccea.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/ipython/py3/IPython/utils')
-rw-r--r--contrib/python/ipython/py3/IPython/utils/_sysinfo.py2
-rw-r--r--contrib/python/ipython/py3/IPython/utils/coloransi.py31
2 files changed, 29 insertions, 4 deletions
diff --git a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
index 9cf8685be1..44764aa4ae 100644
--- a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
+++ b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
@@ -1,2 +1,2 @@
# GENERATED BY setup.py
-commit = "5e7c4a991"
+commit = "9d06a304d"
diff --git a/contrib/python/ipython/py3/IPython/utils/coloransi.py b/contrib/python/ipython/py3/IPython/utils/coloransi.py
index a4a14c5648..ef2dbcb094 100644
--- a/contrib/python/ipython/py3/IPython/utils/coloransi.py
+++ b/contrib/python/ipython/py3/IPython/utils/coloransi.py
@@ -69,10 +69,35 @@ class TermColors:
NoColor = '' # for color schemes in color-less terminals.
Normal = '\033[0m' # Reset normal coloring
- _base = '\033[%sm' # Template for all other colors
-# Build the actual color table as a set of class attributes:
-make_color_table(TermColors)
+ Black = "\033[0;30m"
+ Red = "\033[0;31m"
+ Green = "\033[0;32m"
+ Brown = "\033[0;33m"
+ Blue = "\033[0;34m"
+ Purple = "\033[0;35m"
+ Cyan = "\033[0;36m"
+ LightGray = "\033[0;37m"
+ # Light colors
+ DarkGray = "\033[1;30m"
+ LightRed = "\033[1;31m"
+ LightGreen = "\033[1;32m"
+ Yellow = "\033[1;33m"
+ LightBlue = "\033[1;34m"
+ LightPurple = "\033[1;35m"
+ LightCyan = "\033[1;36m"
+ White = "\033[1;37m"
+ # Blinking colors. Probably should not be used in anything serious.
+ BlinkBlack = "\033[5;30m"
+ BlinkRed = "\033[5;31m"
+ BlinkGreen = "\033[5;32m"
+ BlinkYellow = "\033[5;33m"
+ BlinkBlue = "\033[5;34m"
+ BlinkPurple = "\033[5;35m"
+ BlinkCyan = "\033[5;36m"
+ BlinkLightGray = "\033[5;37m"
+
+
class InputTermColors:
"""Color escape sequences for input prompts.