Merge branch 'no-colors-on-tty' into 'master'
Fix colors when we can't change colors (eg. in a TTY) See merge request ynerant/squinnondation!9
This commit is contained in:
commit
ff781981f9
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