mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-07-22 23:00:43 -04:00
Better terminal palette handling. Fixes #8.
This commit is contained in:
parent
4a935cb500
commit
4da00e57f3
2 changed files with 12 additions and 1 deletions
|
@ -207,7 +207,10 @@ class TextUI:
|
|||
def set_colormode(self, colormode):
|
||||
self.colormode = colormode
|
||||
self.screen.set_terminal_properties(colormode)
|
||||
self.screen.reset_default_terminal_palette()
|
||||
|
||||
if self.colormode < 256:
|
||||
self.screen.reset_default_terminal_palette()
|
||||
self.restore_palette = True
|
||||
|
||||
def unhandled_input(self, key):
|
||||
if key == "ctrl q":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue