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
   8: static char sccsid[] = "@(#)dispmsg.c	5.1 (Berkeley) 4/26/85";
   9: #endif not lint
  10: 
  11: /*
  12:  * display a message, str, starting at (x, y).
  13:  */
  14: 
  15: #include "2648.h"
  16: 
  17: dispmsg(str, x, y, maxlen)
  18: char *str;
  19: int 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: }

Defined functions

dispmsg defined in line 17; used 1 times

Defined variables

sccsid defined in line 8; never used
Last modified: 1987-02-22
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1682
Valid CSS Valid XHTML 1.0 Strict