summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-05-24 22:37:34 +0200
committermathieui <mathieui@mathieui.net>2020-05-24 22:37:34 +0200
commitd3e237811c98423683b711742450ded747ecfe3f (patch)
treef775fdaa5dbf83c1e5fa52dc72070b66eed912b5 /poezio
parentcf131af4a877d1c19ff93cd618b7d936847311d6 (diff)
downloadpoezio-d3e237811c98423683b711742450ded747ecfe3f.tar.gz
poezio-d3e237811c98423683b711742450ded747ecfe3f.tar.bz2
poezio-d3e237811c98423683b711742450ded747ecfe3f.tar.xz
poezio-d3e237811c98423683b711742450ded747ecfe3f.zip
Add a check for terminals not supporting 256 colors
Diffstat (limited to 'poezio')
-rw-r--r--poezio/core/core.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 973c9103..3ad15719 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -543,6 +543,12 @@ class Core:
default_tab.on_gain_focus()
self.tabs.append(default_tab)
self.information('Welcome to poezio!', 'Info')
+ if curses.COLORS < 256:
+ self.information(
+ 'Your terminal does not appear to support 256 colors, the UI'
+ ' colors will probably be ugly',
+ 'Error',
+ )
if firstrun:
self.information(
'It seems that it is the first time you start poezio.\n'