Return to Snippet

Revision: 1761
at November 10, 2006 00:06 by whitetiger


Updated Code
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
	// Funziona sui terminali compatibili ansi
	
	fprintf(stdout, "\033[2J"); // Cancella lo schermo
	fprintf(stdout, "\033[1;1H"); // Posiziona il cursore sulla linea colonna 1

	return EXIT_SUCCESS;
}

Revision: 1760
at November 9, 2006 23:55 by whitetiger


Initial Code
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
	// Funziona sui terminali compatibili ansi
	
	fprintf(stdout, "\033[2J"); // Cancella lo schermo
	fprintf(stdout, "\033[1;1H"); // Posiziona il cursore sulla linea colonna 1

	return EXIT_SUCCESS;
}

Initial URL

                                

Initial Description

                                

Initial Title
C - clear screen

Initial Tags
Bash, rails, unix, c, windows, linux, files, ssh

Initial Language
C++