aboutsummaryrefslogtreecommitdiff
path: root/editors/uemacs
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-14 02:53:01 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-14 02:53:01 +0000
commit8d0fb7b072812f013d4f432a4adc1e089c3bf6f9 (patch)
tree2477cf7d48f6b57e344e4b8f1da312d3e8a373fb /editors/uemacs
parent89217554f0152e7f8920b0bba8624faf6b4ff087 (diff)
downloadports-8d0fb7b072812f013d4f432a4adc1e089c3bf6f9.tar.gz
ports-8d0fb7b072812f013d4f432a4adc1e089c3bf6f9.zip
Notes
Diffstat (limited to 'editors/uemacs')
-rw-r--r--editors/uemacs/files/patch-ag25
1 files changed, 25 insertions, 0 deletions
diff --git a/editors/uemacs/files/patch-ag b/editors/uemacs/files/patch-ag
new file mode 100644
index 000000000000..b595477251ed
--- /dev/null
+++ b/editors/uemacs/files/patch-ag
@@ -0,0 +1,25 @@
+--- src/unix.c.orig Sat Nov 13 14:57:12 1999
++++ src/unix.c Sat Nov 13 15:04:45 1999
+@@ -816,9 +816,19 @@
+ exit(1);
+ }
+
+- /* Get size from termcap */
+- term.t_nrow = tgetnum("li") - 1;
+- term.t_ncol = tgetnum("co");
++ /*
++ * If LINES and/or COLUMNS are set in the environment then use those
++ * values, otherwise get them from termcap.
++ */
++ if ((cp = getenv("LINES")) == NULL || sscanf(cp, "%d",
++ &term.t_nrow) != 1)
++ term.t_nrow = tgetnum("li");
++ term.t_nrow -= 1;
++
++ if ((cp = getenv("COLUMNS")) == NULL || sscanf(cp, "%d",
++ &term.t_ncol) != 1)
++ term.t_ncol = tgetnum("co");
++
+ if (term.t_nrow < 3 || term.t_ncol < 3) {
+ puts("Screen size is too small!");
+ exit(1);