fixed #1665

parent bee3b7c7
......@@ -284,12 +284,15 @@ class TextWin(Win):
def write_text(self, y, x, txt, color):
"""
return the number of line written, -1
write the text of a line.
"""
txt = txt.encode('utf-8')
if color:
self.win.attron(curses.color_pair(color))
self.win.addstr(y, x, txt)
try:
self.win.addstr(y, x, txt)
except: # bug 1665
pass
if color:
self.win.attroff(curses.color_pair(color))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment