mapnl option to window
[unix-history] / usr / src / usr.bin / window / ttinit.c
index 04fd663..6307516 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)ttinit.c    3.6 83/08/26";
+static char sccsid[] = "@(#)ttinit.c   3.10 %G%";
 #endif
 
 #include "ww.h"
 #endif
 
 #include "ww.h"
@@ -11,6 +11,14 @@ ttinit()
        register char *p, *q;
        register char *t;
 
        register char *p, *q;
        register char *t;
 
+       tt_strp = tt_strings;
+
+       /*
+        * Set output buffer size to about 1 second of output time.
+        */
+       tt_obp = tt_ob;
+       tt_obe = tt_ob + MIN(wwbaud/10, sizeof tt_ob);
+
        /*
         * Use the standard name of the terminal (i.e. the second
         * name in termcap).
        /*
         * Use the standard name of the terminal (i.e. the second
         * name in termcap).