summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-01 22:58:47 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-01 22:58:47 +0000
commite8b60effc5cc6262fad9fe816028acf954632a37 (patch)
tree14859b996c214a542b406a5f8104db96c88d2de2 /src
parent2d90ee68ea63eaf95cf2f8a33625f28ef5c4e503 (diff)
downloadpoezio-e8b60effc5cc6262fad9fe816028acf954632a37.tar.gz
poezio-e8b60effc5cc6262fad9fe816028acf954632a37.tar.bz2
poezio-e8b60effc5cc6262fad9fe816028acf954632a37.tar.xz
poezio-e8b60effc5cc6262fad9fe816028acf954632a37.zip
fixed #1569
Diffstat (limited to 'src')
-rw-r--r--src/window.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window.py b/src/window.py
index 9b3d9ce1..9a7f811b 100644
--- a/src/window.py
+++ b/src/window.py
@@ -168,7 +168,7 @@ class RoomInfo(Win):
break
(y, x) = self.win.getyx()
try:
- self.win.addstr(y, x-1, '] '+ current.name.encode('utf-8'), curses.color_pair(1))
+ self.win.addstr(y, x-1, '] '+ current.name, curses.color_pair(1))
except:
pass
while True:
@@ -308,6 +308,7 @@ class TextWin(Win):
class Input(Win):
"""
+ The line where text is entered
"""
def __init__(self, height, width, y, x, stdscr, visible):
Win.__init__(self, height, width, y, x, stdscr)
@@ -380,7 +381,7 @@ class Input(Win):
if len(self.text) >= self.width-1:
txt = self.text[:self.width-1]
self.clear_text()
- self.win.addstr(txt)
+ self.win.addstr(txt.encode('utf-8'))
self.win.move(0, 0)
self.refresh()
@@ -390,7 +391,7 @@ class Input(Win):
if len(self.text) >= self.width-1:
txt = self.text[-(self.width-1):]
self.clear_text()
- self.win.addstr(txt)
+ self.win.addstr(txt.encode('utf-8'))
self.win.move(0, self.width-1)
else:
self.win.move(0, len(self.text))