Re: screen clearing in ANSI C
- From: "David T. Ashley" <dta@xxxxxxxx>
- Date: Mon, 27 Nov 2006 18:36:14 -0500
"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.
.
- Follow-Ups:
- Re: screen clearing in ANSI C
- From: Joe Wright
- Re: screen clearing in ANSI C
- From: Ben Pfaff
- Re: screen clearing in ANSI C
- References:
- screen clearing in ANSI C
- From: Leslie Kis-Adam
- screen clearing in ANSI C
- Prev by Date: Re: string operation??
- Next by Date: Re: Question regarding fgets and new lines
- Previous by thread: Re: screen clearing in ANSI C
- Next by thread: Re: screen clearing in ANSI C
- Index(es):
Relevant Pages
|
|