minor cleanups
[unix-history] / usr / src / old / lib2648 / dispmsg.c
CommitLineData
61d96e53
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8static char sccsid[] = "@(#)dispmsg.c 5.1 (Berkeley) %G%";
9#endif not lint
10
e242f6e6
RC
11/*
12 * display a message, str, starting at (x, y).
13 */
14
15#include "2648.h"
16
17dispmsg(str, x, y, maxlen)
18char *str;
19int x, y;
20{
21 int oldx, oldy;
22 int oldcuron;
23 int oldquiet;
24 extern int QUIET;
25
26 oldx = _curx; oldy = _cury;
27 oldcuron = _cursoron;
28 zoomout();
29 areaclear(y, x, y+8, x+6*maxlen);
30 setset();
31 curon();
32 movecurs(x, y);
33 texton();
34 oldquiet = QUIET;
35 QUIET = 0;
36 outstr(str);
37 if (oldquiet)
38 outstr("\r\n");
39 QUIET = oldquiet;
40 textoff();
41 movecurs(oldx, oldy);
42 if (oldcuron == 0)
43 curoff();
44}