xref: /csrg-svn/old/lib2648/dispmsg.c (revision 11467)
1*11467Sralph /*	dispmsg.c	4.1	83/03/09	*/
2*11467Sralph /*
3*11467Sralph  * display a message, str, starting at (x, y).
4*11467Sralph  */
5*11467Sralph 
6*11467Sralph #include "2648.h"
7*11467Sralph 
8*11467Sralph dispmsg(str, x, y, maxlen)
9*11467Sralph char *str;
10*11467Sralph int x, y;
11*11467Sralph {
12*11467Sralph 	int oldx, oldy;
13*11467Sralph 	int oldcuron;
14*11467Sralph 	int oldquiet;
15*11467Sralph 	extern int QUIET;
16*11467Sralph 
17*11467Sralph 	oldx = _curx; oldy = _cury;
18*11467Sralph 	oldcuron = _cursoron;
19*11467Sralph 	zoomout();
20*11467Sralph 	areaclear(y, x, y+8, x+6*maxlen);
21*11467Sralph 	setset();
22*11467Sralph 	curon();
23*11467Sralph 	movecurs(x, y);
24*11467Sralph 	texton();
25*11467Sralph 	oldquiet = QUIET;
26*11467Sralph 	QUIET = 0;
27*11467Sralph 	outstr(str);
28*11467Sralph 	if (oldquiet)
29*11467Sralph 		outstr("\r\n");
30*11467Sralph 	QUIET = oldquiet;
31*11467Sralph 	textoff();
32*11467Sralph 	movecurs(oldx, oldy);
33*11467Sralph 	if (oldcuron == 0)
34*11467Sralph 		curoff();
35*11467Sralph }
36