[net.sources] 2.10.2 fix to virtterm.c - TI/TS foulup

chuqui@nsc.UUCP (Chuq) (08/21/84)

This is the fix for the problem phil saw with the 2.10.2 vnews. TS in
termcap causes termcap to enable to status line (when it exists) and jump
to it. TI initializes the terminal. Someone seems to have gotten the
documentation wrong in ancient history because this has shown up in vnews
since day one. if you have funny things happening with vnews, try this one
out.

chuq

------- virtterm.c -------
*** /tmp/d02398	Tue Aug 21 04:29:05 1984
--- virtterm.c	Tue Aug 21 04:23:30 1984
***************
*** 35,41
  #define CS _tstr[15]		/* scrolling region */
  #define SF _tstr[16]		/* scroll forwards */
  #define SR _tstr[17]		/* scroll backwards */
! #define TS _tstr[18]		/* start cursor mode */
  #define TE _tstr[19]		/* end cursor mode */
  #define TA _tstr[20]		/* tab char (if not \t) */
  #define CR _tstr[21]		/* carriage return (if not \r) */

--- 35,41 -----
  #define CS _tstr[15]		/* scrolling region */
  #define SF _tstr[16]		/* scroll forwards */
  #define SR _tstr[17]		/* scroll backwards */
! #define TI _tstr[18]		/* start cursor mode */
  #define TE _tstr[19]		/* end cursor mode */
  #define TA _tstr[20]		/* tab char (if not \t) */
  #define CR _tstr[21]		/* carriage return (if not \r) */
***************
*** 43,49
  char PC;			/* pad character */
  char *BC, *UP;			/* external variables for tgoto */
  
! static char sname[] = "hoclcdceupdousuebtbcaldlcmchcvcssfsrtstetacrpc";
  char *_tstr[23];
  int     HOlen;			/* length of HO string */
  

--- 43,49 -----
  char PC;			/* pad character */
  char *BC, *UP;			/* external variables for tgoto */
  
! static char sname[] = "hoclcdceupdousuebtbcaldlcmchcvcssfsrtitetacrpc";
  char *_tstr[23];
  int     HOlen;			/* length of HO string */
  
***************
*** 860,867
  
  
  rawterm() {
! 	if (TS != NULL)
! 		tputs(TS, 0, vputc);
  }
  
  

--- 860,867 -----
  
  
  rawterm() {
! 	if (TI != NULL)
! 		tputs(TI, 0, vputc);
  }
  
  
-- 
From the depths of the Crystal Cavern:		Chuq Von Rospach
{amd,decwrl,fortune,hplabs,ihnp4}!nsc!chuqui	nsc!chuqui@decwrl.ARPA

Dreams, dreams, enchanter! Gone with the harp's echo when the strings fall
mute; with the flame's shadow when the fire dies. Be still, and listen.