		/**  Definition of SForm 'TIP' functions  **/



/* Define types */
typedef	unsigned ATRTYPE	/* Display attribute		*/
typedef	int		 TICODE		/* TIP input code			*/



stinit ()

  Desc -
	Initialize for TIP routines.
	On some systems, this would take control of the terminal characteristics.
	Display parameters (scr size, CRT type, etc.) would be determined here.
  Notes -
	If applicable, scrolling is disabled.



stterm ()

  Desc -
	Terminate TIP control of i/o.
	On some systems, must restore 'normal' i/o characteristics.
  Notes -



stputc ( c )
char	c ;

  Desc -
	Put a character at current cursor pos.
  Notes -
	The cursor is advanced to the next char position. Note that this
	may overflow the current line.
	The character value is not checked.
	The attribute set by ssetattr() determines the display attribute.



TICODE	stgetc ()

  Desc -
	Get next input 'character'.
	'Normal' characters are in the range  0 <= c <= 255.
	'Extended' characters are in the range  256 <= c < 512.
  Notes -



stclw ( top, bottom, left, right, attr )
int		top, bottom, left, right ;		/* blk params */
ATRTYPE	attr ;							/* display attr code */

  Desc -
	Clear a window.
	The window is 'painted' according to value of 'attr'.
  Notes -



stscp ( r, c )
int		r, c ;

  Desc -
	Set cursor position.
  Notes -
	It is probably useful to have this function, even though puts()
	could do the same thing.



stsatr ( attr )
ATRTYPE	attr ;

  Desc -
	Set attribute.
	This defines the display attribute for sputc().
  Notes -



stputs ( str )
char	*str ;

  Desc -
	Display a string at the current cursor position.
  Notes -



stputf ( r, c, w, attr, str )
int		r, c ;			/* pos */
int		w ;				/* field width or '0' */
ATRTYPE	attr ;			/* attribute */
char	*str ;			/* display string */

  Desc -
	Display a field.
	The output is left justified & padded with blanks from end of
	str to end of field.
  Notes -
	If w = 0, use strlen(str) as field width.
	The cursor will be positioned to the next char position after the last
	character in the field (e.g. after any trailing spaces).



stbeep ( tone )
int		tone ;

  Desc -
	Output a 'beep'.
	The argument can be used (on some systems) to define the 'type'
	of beep (short, long, Yankee Doodle Dandy, etc).



stcls ( attr )
ATRTYPE	attr ;

  Desc -
	Clear screen / paint screen.
  Notes -
	Note that this is equivalent to using stclw() with the proper (system
	dependent) args.



stsct ( curtype )
int		curtype ;		/* 0 = cursor off
						   1 = blinking underline
						   2 = steady underline
						   3 = blinking box
						   4 = steady box		*/

  Desc -
	Select cursor attributes.
  Notes -

		/**  Questions  **/

*>  Interrupts ?

*> Scrolling & line wrapping ?
