summaryrefslogtreecommitdiff
path: root/games/level9/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'games/level9/patches/patch-aa')
-rw-r--r--games/level9/patches/patch-aa33
1 files changed, 29 insertions, 4 deletions
diff --git a/games/level9/patches/patch-aa b/games/level9/patches/patch-aa
index e40b8185650..6e6eaca2da9 100644
--- a/games/level9/patches/patch-aa
+++ b/games/level9/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
+$NetBSD: patch-aa,v 1.2 2003/10/01 20:21:40 dillo Exp $
---- unix-curses.c.orig Wed Sep 17 20:53:54 2003
-+++ unix-curses.c Wed Sep 17 20:54:37 2003
+--- unix-curses.c.orig Sun Apr 21 21:37:00 2002
++++ unix-curses.c
@@ -10,11 +10,6 @@
*
* A few notes on this port:
@@ -26,7 +26,12 @@ $NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
* Define this as 1 to get the Emacs-type key bindings
* Ctrl-A (go to beginning of line)
* Ctrl-B (back one character)
-@@ -745,21 +735,6 @@
+@@ -741,25 +731,11 @@ int main (int argc, char *argv [])
+ char gamename [256];
+ char *envbuf;
+ L9BOOL gotgame;
++ char bp[1024];
+
/*
* Check byte sex
*/
@@ -48,3 +53,23 @@ $NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
if (argc != 2)
{
+@@ -786,8 +762,9 @@ int main (int argc, char *argv [])
+ /*
+ * Get the terminal characteristics for line width and More prompt
+ */
++ tgetent(bp, getenv("TERM"));
+ Line_width = tgetnum ("co");
+- if (Line_width == ERR)
++ if ((Line_width == -1) || (Line_width == ERR))
+ {
+ fprintf (stderr, "Couldn't get terminal width---falling back on good old"
+ " 80 columns\n\n");
+@@ -795,7 +772,7 @@ int main (int argc, char *argv [])
+ }
+
+ More_lines = tgetnum ("li");
+- if (More_lines == ERR)
++ if ((More_lines == -1) || (More_lines == ERR))
+ {
+ fprintf (stderr, "Couldn't get terminal height---guessing\n\n");
+ More_lines = 24;