]> git.sommitrealweird.co.uk Git - curses-crossword.git/blobdiff - curses_crossword.py
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
index 88db74ee7cec571f2a3d3ee731df24ceb13f529a..1576950059885a0261eeac8cf3bef82e35a5cedb 100755 (executable)
@@ -214,7 +214,8 @@ def crossword(stdscr, crossworddata):
     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