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[] = "@(#)sync.c	5.1 (Berkeley) 4/26/85";
   9: #endif not lint
  10: 
  11: /*
  12:  * Make the screen & screen mode look like what it's supposed to.
  13:  *
  14:  * There are two basic things to do here, put the _pen
  15:  * in the right place, and make the line drawing mode be right.
  16:  * We don't sync the cursor here, only when there's user input & it's on.
  17:  */
  18: 
  19: #include "2648.h"
  20: 
  21: sync()
  22: {
  23:     if (_supx != _penx || _supy != _peny) {
  24:         escseq(ESCP);
  25:         outchar('a');
  26:         motion(_supx, _supy);
  27:     }
  28:     if (_supsmode != _actsmode) {
  29:         escseq(ESCM);
  30:         switch (_actsmode = _supsmode) {
  31:         case MX:
  32:             outchar('3');
  33:             break;
  34:         case MC:
  35:             outchar('1');
  36:             break;
  37:         case MS:
  38:             outchar('2');
  39:             break;
  40:         }
  41:         outchar('a');
  42:     }
  43: }
Last modified: 1985-04-26
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 955
Valid CSS Valid XHTML 1.0 Strict