Fix colors when we can't change colors (eg. in a TTY)
This commit is contained in:
parent
25e502ab45
commit
ea5da5656f
File diff suppressed because it is too large
Load Diff
|
@ -120,6 +120,7 @@ class User(Peer):
|
||||||
self.emoji_pad = curses.newpad(18, 12)
|
self.emoji_pad = curses.newpad(18, 12)
|
||||||
self.emoji_panel_page = -1
|
self.emoji_panel_page = -1
|
||||||
|
|
||||||
|
if curses.can_change_color():
|
||||||
curses.init_color(curses.COLOR_WHITE, 1000, 1000, 1000)
|
curses.init_color(curses.COLOR_WHITE, 1000, 1000, 1000)
|
||||||
for i in range(curses.COLOR_BLACK + 1, curses.COLOR_WHITE):
|
for i in range(curses.COLOR_BLACK + 1, curses.COLOR_WHITE):
|
||||||
curses.init_pair(i + 1, i, curses.COLOR_BLACK)
|
curses.init_pair(i + 1, i, curses.COLOR_BLACK)
|
||||||
|
|
Loading…
Reference in New Issue