Re: screen clearing in ANSI C



"Leslie Kis-Adam" <dfighter@xxxxxxxxxxx> wrote in message
news:ek7s1a$fjk$1@xxxxxxxxxxxxxxxxxx
Hi everyone!
Does anyone know, if it is possible to clear the screen in ANSI C?
If it is,then how?
Any help would be appreciated.

I don't know about ANSI ... but in the *nix world most shell programs
emulate the VT100 ... the following program will clear the screen.

#include <stdio.h>

char s[] = {27, '[', '2', 'J', 0};

int main(void)
{
printf("%s", s);
}

A list of some commands is here:

http://www.cs.utk.edu/~shuford/terminal/vt100_reference_card.txt

Searching by VT100 will turn up more.



.



Relevant Pages

  • Re: screen clearing in ANSI C
    ... Ben Pfaff said: ... if it is possible to clear the screen in ANSI C? ... but in the *nix world most shell programs ... This is exactly why off-topic questions should not receive ...
    (comp.lang.c)
  • Re: screen clearing in ANSI C
    ... if it is possible to clear the screen in ANSI C? ... but in the *nix world most shell programs ... emulate the VT100 ... ... null pointers don't have to be *dull* pointers! ...
    (comp.lang.c)
  • Re: Help. I cant command-line encode!
    ... The cause of this issue is bizarre, and rather hilarious, actually. ... The answer is simply that en dashes (ANSI 150) have been used ... in the help file rather than true minus signs. ... and the commands should work fine for you. ...
    (microsoft.public.windowsmedia.encoder)
  • Re: working with the OS
    ... how do i send commands to the operating system? ... Roughly the equivalent of system function in ANSI C is Runtime.exec. ... Runtime.exec commands are not automatically passed through a shell ...
    (comp.lang.java.help)
  • Re: Alignment Levels
    ... Steve, you are not alone. ... I went searching and I ... found more than a few web sites that also list 0VU=0dB. ... ANSI does ...
    (rec.arts.movies.production.sound)