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