diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-20 02:27:39 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-20 02:27:39 +0200 |
commit | d231cd8dc64ab6040032957ef287519fa5247a42 (patch) | |
tree | e9fb9e2b959fabd6612a4ab284f9e1c4bb216a30 | |
parent | ddecb9a701438ca7e6e09391675889183150cea2 (diff) | |
download | play-d231cd8dc64ab6040032957ef287519fa5247a42.tar.xz |
play: allow printing of non-ASCII bytes
-rw-r--r-- | play | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -120,10 +120,6 @@ class Keymap: class Window: chars = string.letters+string.digits+string.punctuation+string.whitespace - t = ['?'] * 256 - for c in chars: t[ord(c)] = c - translationTable = string.join(t, ""); del t - def __init__(self, parent): self.parent = parent self.children = [] @@ -220,7 +216,7 @@ class StatusWindow(Window): return curses.newwin(1, self.parent.cols-12, self.parent.rows-1, 0) def update(self): - msg = string.translate(self.current_message, Window.translationTable) + msg = self.current_message self.move(0, 0) self.clrtoeol() # Color of statusbar messages @@ -446,7 +442,7 @@ class ListWindow(Window): return "%-*s %s" % (width, cut(self.name+data, width), pos) def putstr(self, entry, *pos): - s = string.translate(str(entry), Window.translationTable) + s = str(entry) pos and self.move(*pos) if self.hoffset: s = "<%s" % s[self.hoffset+1:] self.insstr(cut(s, self.cols)) |