[comp.sys.dec] disabling the cursor on VT terminals

scoile@gmuvax2.gmu.edu (Steve Coile) (03/14/91)

Is there an escape code to disable the cursor (so it doesn't show up on the
screen) on VT100 series and higher terminals?

Thanks in advance for any help.

Followups directed to poster.

Steve "Stevers!" Coile
scoile@gmuvax[{.BITNET|[2].gmu.edu}]|2211c1@gmuvax2.gmu.edu
"Maturity is knowing when and where to act immature"

drack@titan.tsd.arlut.utexas.edu (Dave Rackley) (03/15/91)

In article <3778@gmuvax2.gmu.edu> scoile@gmuvax2.gmu.edu (Steve Coile) writes:

>   Is there an escape code to disable the cursor (so it doesn't show up on the
>   screen) on VT100 series and higher terminals?

>   Thanks in advance for any help.

>   Followups directed to poster.

>   Steve "Stevers!" Coile
>   scoile@gmuvax[{.BITNET|[2].gmu.edu}]|2211c1@gmuvax2.gmu.edu
>   "Maturity is knowing when and where to act immature"

I use the following in 'C':

/************************************************************/
/* CLS.H -- VT320 screen control functions;
   D. Rackley; 10/09/90 */

#define ESC         '\033'
#define ASCII       printf("%c(B",ESC)
#define BLINK       printf("%c[5m",ESC)
#define BOLD        printf("%c[1m",ESC)
#define CLS         printf("%c[2J%c[1;1H",ESC,ESC)
#define CURSOR_OFF  printf("%c[?25l",ESC)
#define CURSOR_ON   printf("%c[?25h",ESC)
#define GRAPHICS    printf("%c(0",ESC)
#define locate(y,x) printf("%c[%d;%dH",ESC,y,x)
#define NORMAL      printf("%c[0m",ESC)
#define REVERSE     printf("%c[7m",ESC)
#define UNDERLINE   printf("%c[4m",ESC)

/********************************* end of CLS.H *************/

--

  DISCLAIMER:  I, hereby, disclaim any disclaimer except this disclaimer.  

+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| David Rackley                 | Now comes the really weird part...You know  |
| Applied Research Laboratories | the part where I know how to tap dance, but |
| The University of Texas       | only while wearing golf shoes...            |
| Austin, TX.  78758            |        ...Ponderous, man, really ponderous! |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+