projects
/
curses-crossword.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make it so that if the pad for the clues doesn't cover the whole rest of the screen...
[curses-crossword.git]
/
curses_crossword.py
diff --git
a/curses_crossword.py
b/curses_crossword.py
index 88db74ee7cec571f2a3d3ee731df24ceb13f529a..1576950059885a0261eeac8cf3bef82e35a5cedb 100755
(executable)
--- a/
curses_crossword.py
+++ b/
curses_crossword.py
@@
-214,7
+214,8
@@
def crossword(stdscr, crossworddata):
padtly = cury
(padbry, padbrx) = stdscr.getmaxyx()
padtly = cury
(padbry, padbrx) = stdscr.getmaxyx()
- sys.stderr.write("Pady, padx, max bits: %dx%d, %dx%d\n" %(padtly, padtlx, padbry, padbrx))
+ if padbry > cluespad.getmaxyx()[0] + padtly:
+ padbry = cluespad.getmaxyx()[0] + padtly
cury = 0
cluespad.addstr(cury, curx, "Across")
cury += 1
cury = 0
cluespad.addstr(cury, curx, "Across")
cury += 1