import os, sys, math, curses, time, pickle, copy, gettext, getpass
import getopt, socket, locale
+import codecs
# This import only works on Unixes. The intention is to enable
# Ctrl-P, Ctrl-N, and friends in Cmd.
def cgetline():
"Get a line of input."
if game.options & OPTION_CURSES:
- linein = curwnd.getstr() + "\n"
+ linein = codecs.decode(curwnd.getstr()) + "\n"
curwnd.refresh()
else:
if replayfp and not replayfp.closed:
'C':LIGHTRED,
'R':LIGHTRED,
'T':LIGHTRED,
+ '@':LIGHTGREEN,
+ 'P':LIGHTGREEN,
+ '?':MAGENTA,
}.get(game.quad[i][j], DEFAULT))
proutn("%c " % game.quad[i][j])
textcolor(DEFAULT)