*** ckmgrterm.c	Thu Mar 21 10:46:46 1991
--- ../ckmgrterm.c	Fri Mar 22 09:29:14 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: ckmgrterm.c,v 4.1 88/06/21 13:40:34 bianchi Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/ckmgrterm.c,v $
  */
! static char	RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/ckmgrterm.c,v $$Revision: 4.1 $";
  
  #include	<stdio.h>
  
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/ckmgrterm.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/ckmgrterm.c,v $
  */
! static char	RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/ckmgrterm.c,v $$Revision: 1.1 $";
  
  #include	<stdio.h>
  
*** dump.h	Thu Mar 21 10:46:46 1991
--- ../dump.h	Fri Mar 22 09:29:14 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: dump.h,v 4.2 88/07/20 15:16:24 sau Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/dump.h,v $
  */
! static char	h_dump_[] = "$Source: /tmp/mgrsrc/lib/RCS/dump.h,v $$Revision: 4.2 $";
  /* format for saved bitmaps */
  
  #define B_HSIZE		(sizeof(struct b_header))
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/dump.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/dump.h,v $
  */
! static char	h_dump_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/dump.h,v $$Revision: 1.1 $";
  /* format for saved bitmaps */
  
  #define B_HSIZE		(sizeof(struct b_header))
*** restart.h	Thu Mar 21 10:46:46 1991
--- ../restart.h	Fri Mar 22 09:29:16 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: restart.h,v 4.1 88/06/21 13:40:38 bianchi Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/restart.h,v $
  */
! static char	h_restart_[] = "$Source: /tmp/mgrsrc/lib/RCS/restart.h,v $$Revision: 4.1 $";
  
  /* stuff for restarting upon reshape/ redraw */
  
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/restart.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/restart.h,v $
  */
! static char	h_restart_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/restart.h,v $$Revision: 1.1 $";
  
  /* stuff for restarting upon reshape/ redraw */
  
***************
*** 22,29 ****
--- 22,34 ----
  #include <signal.h>
  #endif
  
+ #if __STDC__
+ void _Catch (void);
+ void _Clean (void);
+ #else
  extern int _Catch(), _Clean();
  extern jmp_buf _env;
+ #endif
  
  #ifdef QUIT_CHAR
  static char *_quit = QUIT_CHAR;
*** scribe.c	Thu Mar 21 10:46:47 1991
--- ../scribe.c	Fri Mar 22 09:29:17 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: scribe.c,v 4.2 88/06/22 09:05:15 sau Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/scribe.c,v $
  */
! static char	RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/scribe.c,v $$Revision: 4.2 $";
  
  /* These characters were adapted from the Hershey font collection.
   *
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/scribe.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/scribe.c,v $
  */
! static char	RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/scribe.c,v $$Revision: 1.1 $";
  
  /* These characters were adapted from the Hershey font collection.
   *
***************
*** 18,24 ****
  
  scribe( font, ch, min, max, npts, pts)
  	int font, *npts;
! 	char ch;
  	short	*min, *max, *pts;
  #	define char_per_font 96
  {
--- 18,24 ----
  
  scribe( font, ch, min, max, npts, pts)
  	int font, *npts;
! 	int ch;
  	short	*min, *max, *pts;
  #	define char_per_font 96
  {
*** sfont.c	Thu Mar 21 10:46:47 1991
--- ../sfont.c	Fri Mar 22 09:29:18 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: sfont.c,v 4.2 88/06/22 09:12:40 sau Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/sfont.c,v $
  */
! static char	RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/sfont.c,v $$Revision: 4.2 $";
  
  /* These characters were adapted from the Hershey font collection.
   *
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sfont.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sfont.c,v $
  */
! static char	RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sfont.c,v $$Revision: 1.1 $";
  
  /* These characters were adapted from the Hershey font collection.
   *
***************
*** 19,25 ****
  /*---------------------------------------*/
  sfont( font, ch, min, max, npts, pts)
  	int font, *npts;
! 	char ch;
  	short	*min, *max, *pts;
  #	define char_per_font 96
  {
--- 19,25 ----
  /*---------------------------------------*/
  sfont( font, ch, min, max, npts, pts)
  	int font, *npts;
! 	int ch;
  	short	*min, *max, *pts;
  #	define char_per_font 96
  {
*** sin.c	Thu Mar 21 10:46:47 1991
--- ../sin.c	Fri Mar 22 09:29:18 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: sin.c,v 4.1 88/06/21 13:40:58 bianchi Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/sin.c,v $
  */
! static char	RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/sin.c,v $$Revision: 4.1 $";
  
  /*	sine and cosine routines
   *	input:	degrees (integer) 
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sin.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sin.c,v $
  */
! static char	RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sin.c,v $$Revision: 1.1 $";
  
  /*	sine and cosine routines
   *	input:	degrees (integer) 
***************
*** 17,23 ****
  
  /*	sin table 0-90 degrees * 1024 */
  
! int sintab[] = {
  	0, 18, 36, 54, 71, 89, 107, 125, 143, 160,
  	178, 195, 213, 230, 248, 265, 282, 299, 316, 333,
  	350, 367, 384, 400, 416, 433, 449, 465, 481, 496,
--- 17,23 ----
  
  /*	sin table 0-90 degrees * 1024 */
  
! static short sintab[] = {
  	0, 18, 36, 54, 71, 89, 107, 125, 143, 160,
  	178, 195, 213, 230, 248, 265, 282, 299, 316, 333,
  	350, 367, 384, 400, 416, 433, 449, 465, 481, 496,
*** term.c	Thu Mar 21 10:51:06 1991
--- ../term.c	Fri Mar 22 09:31:52 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: term.c,v 4.3 88/07/01 09:33:49 bianchi Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/term.c,v $
  */
! static char	RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/term.c,v $$Revision: 4.3 $";
  
  /* routines for writing to mgr terminal emulator */
  
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.c,v $
  */
! static char	RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.c,v $$Revision: 1.1 $";
  
  /* routines for writing to mgr terminal emulator */
  
***************
*** 416,422 ****
     len = 2 * count + 1;
  
     for (i=0;i<count;i++)
!        len += strlen(text[i].value) + strlen(text[i].action);
     
     fprintf(m_termout,"%c%d,%d%c%c",m_escchar,n,len,E_MENU,m_menuchar);
  
--- 416,422 ----
     len = 2 * count + 1;
  
     for (i=0;i<count;i++)
!        len += (int)strlen(text[i].value) + (int)strlen(text[i].action);
     
     fprintf(m_termout,"%c%d,%d%c%c",m_escchar,n,len,E_MENU,m_menuchar);
  
***************
*** 546,553 ****
--- 546,557 ----
   */
  
  #ifndef iswhite
+ #ifdef atarist
+ #define iswhite(x)	((x)==' ' || (x)=='\t' || (x)=='\r')
+ #else
  #define iswhite(x)	((x)==' ' || (x)=='\t')
  #endif
+ #endif
  
  int
  parse(line,fields)
***************
*** 584,600 ****
  /******************************************
   *	stuff for restarting
   */
  
! _Catch()
     {
     ioctl(fileno(m_termin),TIOCFLUSH,0);
  #ifdef atarist
     _discard(m_termout);
  #endif
     longjmp(_env,1);
     }
  
! _Clean()
     {
  #ifdef atarist
     _discard(m_termout);
--- 588,611 ----
  /******************************************
   *	stuff for restarting
   */
+ static void _discard(FILE*);
+ #ifdef __MINT__
+ #include <mintbind.h>
+ #endif
  
! void _Catch()
     {
     ioctl(fileno(m_termin),TIOCFLUSH,0);
  #ifdef atarist
     _discard(m_termout);
  #endif
+ #ifdef __MINT__
+    Psigreturn();
+ #endif
     longjmp(_env,1);
     }
  
! void _Clean()
     {
  #ifdef atarist
     _discard(m_termout);
***************
*** 605,611 ****
     }
  
  #ifdef atarist
! _discard(f)
     FILE *f;
     {
     f->_cnt = 0;
--- 616,622 ----
     }
  
  #ifdef atarist
! static void _discard(f)
     FILE *f;
     {
     f->_cnt = 0;
*** term.h	Thu Mar 21 10:46:47 1991
--- ../term.h	Fri Mar 22 09:31:11 1991
***************
*** 1,4 ****
! %/*                        Copyright (c) 1987 Bellcore
   *                            All Rights Reserved
   *       Permission is granted to copy or use this program, EXCEPT that it
   *       may not be sold for profit, the copyright notice must be reproduced
--- 1,4 ----
! /*                        Copyright (c) 1987 Bellcore
   *                            All Rights Reserved
   *       Permission is granted to copy or use this program, EXCEPT that it
   *       may not be sold for profit, the copyright notice must be reproduced
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: term.h,v 4.6 88/08/18 10:17:05 sau Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/term.h,v $
  */
! static char	h_term_[] = "$Source: /tmp/mgrsrc/lib/RCS/term.h,v $$Revision: 4.6 $";
  
  /* macros for writing to mgr terminal emulator */
  
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.h,v $
  */
! static char	h_term_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.h,v $$Revision: 1.1 $";
  
  /* macros for writing to mgr terminal emulator */
  
***************
*** 29,34 ****
--- 29,116 ----
  #include <sgtty.h>
  #endif
  
+ /* structure definitions */
+ 
+ #define MENU_SIZE(x)	((int)(sizeof(x)/sizeof(struct menu_entry)))
+ 
+ struct menu_entry {
+    char *value;		/* this appears in the menu */
+    char *action;	/* this gets sent by mgr upon selection */
+    };
+ 
+ struct window_data {
+    int x,y;		/* origin */
+    int w,h;		/* width, height */
+    char tty[3];		/* name of controlling tty */
+    char status;		/* activation status */
+    int num;		/* window number (>0 for client) */
+    int setid;		/* window set ID */
+    };
+ 
+ struct icon {
+    char *name;		/* name of icon */
+    int type;		/* always 1 */
+    int w;		/* bitmap width */
+    int h;		/* bitmap height */
+    unsigned char *data;	/* data goes here */
+    };
+ 
+ /* protos */
+ 
+ #if defined(__STDC__) || defined(__cplusplus)
+ # define P_(s) s
+ #else
+ # define P_(s) ()
+ #endif
+ 
+ 
+ /* ckmgrterm.c */
+ void ckmgrterm P_((char *text));
+ 
+ /* term.c */
+ int m_setup P_((int flags));
+ int get_info P_((int type, char **list));
+ int get_windata P_((struct window_data *windatap));
+ int get_eachwin P_((struct window_data *windatap));
+ int get_eachclientwin P_((struct window_data *windatap));
+ int get_all P_((struct window_data *list));
+ int get_client P_((struct window_data *list));
+ int get_size P_((int *x, int *y, int *wide, int *high));
+ int get_mouse P_((int *x, int *y));
+ int get_param P_((char *host, int *xmax, int *ymax, int *border));
+ int get_cursor P_((int *x, int *y));
+ int get_colrow P_((int *cols, int *rows));
+ char *get_termcap P_((void));
+ int get_font P_((int *wide, int *high));
+ int m_makewindow P_((int x, int y, int wide, int high));
+ int is_active P_((void));
+ char *m_lastline P_((void));
+ int menu_load P_((int n, int count, struct menu_entry *text));
+ int m_bitload P_((int x, int y, int w, int h, char *data));
+ int m_ttyset P_((void));
+ int m_ttyreset P_((void));
+ int m_resetflags P_((int flags));
+ int m_setflags P_((int flags));
+ int m_bitfile P_((int bitmapid, char *iconname, int *iconwidthp, int *iconheightp));
+ int parse P_((char *line, char **fields));
+ void _Catch P_((void));
+ void _Clean P_((void));
+ 
+ /* text.c */
+ int text P_((char *s, int x, int y, int font, int angle, int size_x, int size_y));
+ 
+ /* sfont.c */
+ int sfont P_((int font, int ch, short *min, short *max, int *npts, short *pts));
+ 
+ /* sin.c */
+ int isin P_((int n));
+ int icos P_((int n));
+ 
+ /* scribe.c */
+ int scribe P_((int font, int ch, short *min, short *max, int *npts, short *pts));
+ 
+ #undef P_
+ 
  #define TTYMAX		10	/* stack size for ttyset() */
  
  #define M_FLUSH		0x1	/* autoflush output after each write */
***************
*** 181,199 ****
   
  #define m_othersave(id,sub,name) \
  	(fprintf(m_termout,"%c%d,%d,%d%c%s",\
! 	m_escchar,id,sub,(int)strlen(name),E_SMAP,name)_m_flsh)
   
  #define m_windowsave(name) \
  	(fprintf(m_termout,"%c%d%c%s",\
! 	m_escchar,(int)strlen(name),E_SMAP,name)_m_flsh)
   
  #define m_bitsave(from,name) \
  	(fprintf(m_termout,"%c%d,%d%c%s",\
! 	m_escchar,from,(int)strlen(name),E_SMAP,name)_m_flsh)
   
  #define m_bitfromfile(to,name) \
  	(fprintf(m_termout,"%c%d,%d%c%s",\
! 	m_escchar,to,(int)strlen(name),E_GMAP,name)_m_flsh)
   
  #define m_highlight(x,y,w,h) \
  	(fprintf(m_termout,"%c%d,%d,%d,%d%c",\
--- 263,281 ----
   
  #define m_othersave(id,sub,name) \
  	(fprintf(m_termout,"%c%d,%d,%d%c%s",\
! 	m_escchar,id,sub,(int)(strlen(name)),E_SMAP,name)_m_flsh)
   
  #define m_windowsave(name) \
  	(fprintf(m_termout,"%c%d%c%s",\
! 	m_escchar,(int)(strlen(name)),E_SMAP,name)_m_flsh)
   
  #define m_bitsave(from,name) \
  	(fprintf(m_termout,"%c%d,%d%c%s",\
! 	m_escchar,from,(int)(strlen(name)),E_SMAP,name)_m_flsh)
   
  #define m_bitfromfile(to,name) \
  	(fprintf(m_termout,"%c%d,%d%c%s",\
! 	m_escchar,to,(int)(strlen(name)),E_GMAP,name)_m_flsh)
   
  #define m_highlight(x,y,w,h) \
  	(fprintf(m_termout,"%c%d,%d,%d,%d%c",\
***************
*** 201,207 ****
   
  #define m_stringto(to,x,y,text) \
  	(fprintf(m_termout,"%c%d,%d,%d,%d%c%s",\
! 	m_escchar,to,x,y,(int)strlen(text),E_STRING,text)_m_flsh)
  
  /* other graphic functions */
  
--- 283,289 ----
   
  #define m_stringto(to,x,y,text) \
  	(fprintf(m_termout,"%c%d,%d,%d,%d%c%s",\
! 	m_escchar,to,x,y,(int)(strlen(text)),E_STRING,text)_m_flsh)
  
  /* other graphic functions */
  
***************
*** 265,271 ****
  
  #define m_loadfont(n,name) \
  	(fprintf(m_termout,"%c%d,%d%c%s", \
! 	m_escchar,n,(int)strlen(name),E_FONT,name)_m_flsh)
  
  #define m_size(cols,rows) \
  	(fprintf(m_termout,"%c%d,%d%c",m_escchar,cols,rows,E_SIZE)_m_flsh)
--- 347,353 ----
  
  #define m_loadfont(n,name) \
  	(fprintf(m_termout,"%c%d,%d%c%s", \
! 	m_escchar,n,(int)(strlen(name)),E_FONT,name)_m_flsh)
  
  #define m_size(cols,rows) \
  	(fprintf(m_termout,"%c%d,%d%c",m_escchar,cols,rows,E_SIZE)_m_flsh)
***************
*** 300,306 ****
  
  #define m_setevent(event,x) \
  	(fprintf(m_termout,"%c%d,%d%c%s", \
! 	m_escchar,_mapevent(event),(int)strlen(x),E_EVENT,x)_m_flsh)
  
  #define m_clearevent(event) \
  	(fprintf(m_termout,"%c%d%c", \
--- 382,388 ----
  
  #define m_setevent(event,x) \
  	(fprintf(m_termout,"%c%d,%d%c%s", \
! 	m_escchar,_mapevent(event),(int)(strlen(x)),E_EVENT,x)_m_flsh)
  
  #define m_clearevent(event) \
  	(fprintf(m_termout,"%c%d%c", \
***************
*** 310,328 ****
  
  #define m_sendme(str) \
  	(fprintf(m_termout,"%c%d%c%s", \
! 	m_escchar,(int)strlen(str),E_GIMME,str)_m_flsh)
  
  #define m_sendto(pid,str) \
  	(fprintf(m_termout,"%c%d,%d%c%s", \
! 	m_escchar,pid,(int)strlen(str),E_SEND,str)_m_flsh)
  
  #define m_broadcast(str) \
  	(fprintf(m_termout,"%c%d%c%s", \
! 	m_escchar,(int)strlen(str),E_SEND,str)_m_flsh)
  
  #define m_snarf(str) \
  	(fprintf(m_termout,"%c%d%c%s", \
! 	m_escchar,(int)strlen(str),E_SNARF,str)_m_flsh)
  
  #define m_put() \
  	(fprintf(m_termout,"%c%c", \
--- 392,410 ----
  
  #define m_sendme(str) \
  	(fprintf(m_termout,"%c%d%c%s", \
! 	m_escchar,(int)(strlen(str)),E_GIMME,str)_m_flsh)
  
  #define m_sendto(pid,str) \
  	(fprintf(m_termout,"%c%d,%d%c%s", \
! 	m_escchar,pid,(int)(strlen(str)),E_SEND,str)_m_flsh)
  
  #define m_broadcast(str) \
  	(fprintf(m_termout,"%c%d%c%s", \
! 	m_escchar,(int)(strlen(str)),E_SEND,str)_m_flsh)
  
  #define m_snarf(str) \
  	(fprintf(m_termout,"%c%d%c%s", \
! 	m_escchar,(int)(strlen(str)),E_SNARF,str)_m_flsh)
  
  #define m_put() \
  	(fprintf(m_termout,"%c%c", \
***************
*** 422,428 ****
  	(fprintf(m_termout,"%c-%d%c",m_escchar,999,E_MENU)_m_flsh)
  
  #define m_loadmenu(n,str) \
! 	(fprintf(m_termout,"%c%d,%d%c%s",m_escchar,n,(int)strlen(str),E_MENU,str)_m_flsh)
  
  #define m_clearmenu(n) \
  	(fprintf(m_termout,"%c%d,0%c",m_escchar,n,E_MENU)_m_flsh)
--- 504,510 ----
  	(fprintf(m_termout,"%c-%d%c",m_escchar,999,E_MENU)_m_flsh)
  
  #define m_loadmenu(n,str) \
! 	(fprintf(m_termout,"%c%d,%d%c%s",m_escchar,n,(int)(strlen(str)),E_MENU,str)_m_flsh)
  
  #define m_clearmenu(n) \
  	(fprintf(m_termout,"%c%d,0%c",m_escchar,n,E_MENU)_m_flsh)
***************
*** 523,556 ****
  extern char m_escchar;		/* \033, change only for debugging */
  extern char m_menuchar;		/* menu field seperator char (\005) */
  extern char m_linebuf[MAXLINE];
- 
- extern int get_info(), get_size(), parse(), get_font(), is_active(), menu_load();
- extern char *m_lastline(), *get_termcap();
- 
- /* structure definitions */
- 
- #define MENU_SIZE(x)	((int)(sizeof(x)/sizeof(struct menu_entry)))
- 
- struct menu_entry {
-    char *value;		/* this appears in the menu */
-    char *action;	/* this gets sent by mgr upon selection */
-    };
- 
- struct window_data {
-    int x,y;		/* origin */
-    int w,h;		/* width, height */
-    char tty[3];		/* name of controlling tty */
-    char status;		/* activation status */
-    int num;		/* window number (>0 for client) */
-    int setid;		/* window set ID */
-    };
- 
- struct icon {
-    char *name;		/* name of icon */
-    int type;		/* always 1 */
-    int w;		/* bitmap width */
-    int h;		/* bitmap height */
-    unsigned char *data;	/* data goes here */
-    };
  
  #endif _TERM_INCL
--- 605,609 ----
*** text.c	Thu Mar 21 10:46:47 1991
--- ../text.c	Fri Mar 22 09:29:20 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: text.c,v 4.1 88/06/21 13:41:05 bianchi Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/text.c,v $
  */
! static char	RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/text.c,v $$Revision: 4.1 $";
  
  #include "term.h"
  
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/text.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/text.c,v $
  */
! static char	RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/text.c,v $$Revision: 1.1 $";
  
  #include "term.h"
  
*** window.h	Thu Mar 21 10:46:47 1991
--- ../window.h	Fri Mar 22 09:29:20 1991
***************
*** 5,14 ****
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: window.h,v 4.2 88/08/12 07:41:26 sau Exp $
! 	$Source: /tmp/mgrsrc/lib/RCS/window.h,v $
  */
! static char	h_window_[] = "$Source: /tmp/mgrsrc/lib/RCS/window.h,v $$Revision: 4.2 $";
  
  /* defines for terminal emulator */
  
--- 5,14 ----
   *       on copies, and credit should be given to Bellcore where it is due.
   *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
   */
! /*	$Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/window.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
! 	$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/window.h,v $
  */
! static char	h_window_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/window.h,v $$Revision: 1.1 $";
  
  /* defines for terminal emulator */
  
