#!/usr/bin/python
import curses
+import curses.ascii
import locale
import codecs
curx += 4
curx -= 1
stdscr.addch(cury, curx, curses.ACS_LRCORNER)
+ curx = 3
+ cury = 1
+ stdscr.move(1,3)
while 1:
c = stdscr.getch()
- if c == ord('q'):
+ if c == curses.ascii.ESC:
break
+ if c == curses.KEY_RIGHT:
+ curx += 4
+ stdscr.move(cury, curx)
+ if c == curses.KEY_LEFT:
+ curx -= 4
+ stdscr.move(cury, curx)
+ if c == curses.KEY_UP:
+ cury -= 2
+ stdscr.move(cury, curx)
+ if c == curses.KEY_DOWN:
+ cury += 2
+ stdscr.move(cury, curx)
+
curses.wrapper(crossword, crossworddata)
-print parsecrossword(crossworddata)