added depend label
[unix-history] / usr / src / usr.bin / ex / ex_tty.h
index 92fec8f..5edcec2 100644 (file)
@@ -1,5 +1,11 @@
-/* Copyright (c) 1981 Regents of the University of California */
-/* sccs id:    @(#)ex_tty.h    5.1.1.1 %G%  */
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)ex_tty.h    7.7 (Berkeley) %G%
+ */
+
 /*
  * Capabilities from termcap
  *
 /*
  * Capabilities from termcap
  *
@@ -26,7 +32,7 @@
  * before the capability to say 12 milliseconds per affected whatever
  * (currently always line).  Capabilities where this makes sense say P*.
  */
  * before the capability to say 12 milliseconds per affected whatever
  * (currently always line).  Capabilities where this makes sense say P*.
  */
-var    char    tspace[256];    /* Space for capability strings */
+var    char    tspace[1024];   /* Space for capability strings */
 var    char    *aoftspace;     /* Address of tspace for relocation */
 
 var    char    *AL;            /* P* Add new blank line */
 var    char    *aoftspace;     /* Address of tspace for relocation */
 
 var    char    *AL;            /* P* Add new blank line */
@@ -110,7 +116,9 @@ var bool    UPPERCASE;      /* Ick! */
 extern short   LINES;          /* Number of lines on screen */
 extern short   COLUMNS;
 var    short   OCOLUMNS;       /* Save COLUMNS for a hack in open mode */
 extern short   LINES;          /* Number of lines on screen */
 extern short   COLUMNS;
 var    short   OCOLUMNS;       /* Save COLUMNS for a hack in open mode */
+#ifdef TIOCGWINSZ
 var    struct winsize winsz;   /* Save window size for stopping comparisons */
 var    struct winsize winsz;   /* Save window size for stopping comparisons */
+#endif
 
 var    short   outcol;         /* Where the cursor is */
 var    short   outline;
 
 var    short   outcol;         /* Where the cursor is */
 var    short   outline;
@@ -130,7 +138,7 @@ var short   destline;
  *
  * The following attempts to decide what we are on, and declare
  * some variables in the appropriate format.  The wierd looking one (ttymode)
  *
  * The following attempts to decide what we are on, and declare
  * some variables in the appropriate format.  The wierd looking one (ttymode)
- * is the thing we pass to sTTY and family to turn "RAW" mode on or off
+ * is the thing we pass to ex_sTTY and family to turn "RAW" mode on or off
  * when we go into or out of visual mode.  In V7/V6 it's just the flags word
  * to stty.  In USG V3 it's the whole tty structure.
  */
  * when we go into or out of visual mode.  In V7/V6 it's just the flags word
  * to stty.  In USG V3 it's the whole tty structure.
  */