🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #3299

Re: disabling the cursor on VT terminals

#3299
From: Dave Rackley
Date: Fri, 15 Mar 1991 14:21
44 lines
2405 bytes
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! |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
Technical Details
Message-ID: <DRACK.91Mar15082113@diablo.titan.tsd.arlut.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!cs.widener.edu!news.cs.indiana.edu!know!cs.utexas.edu!titan!drack
References: <3778@gmuvax2.gmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!cs.widener.edu!news.cs.indiana.edu!know!cs.utexas.edu!titan!drack
From: drack@titan.tsd.arlut.utexas.edu (Dave Rackley)
Newsgroups: comp.sys.dec
Subject: Re: disabling the cursor on VT terminals
Message-ID: <DRACK.91Mar15082113@diablo.titan.tsd.arlut.utexas.edu>
Date: 15 Mar 91 14:21:13 GMT
References: <3778@gmuvax2.gmu.edu>
Sender: news@titan.tsd.arlut.utexas.edu
Followup-To: comp.sys.dec
Distribution: usa
Organization: Applied Research Laboratories, University of Texas at Austin.
Lines: 44
In-reply-to: scoile@gmuvax2.gmu.edu's message of 14 Mar 91 05:13:37 GMT