terminal - How to clear screen in C without any system function or library? -
terminal - How to clear screen in C without any system function or library? -
clear screen in c programming language without utilize of scheme function or library?
#include<stdio.h> void main() { char name[11]="abhinay"; // ansi character print "name value" in colorful form. printf("%c[36m%s\n\n", (char) 27,name); printf("\n hellow world\n"); printf("[36m %s \n\n", name); }
there no standard or portable way, depends on terminal emulator.
you can ansi escape sequences, seems you're using.
this wikipedia page indicates ed (erase display) right command, code 2, i.e. printf("%c2j", 27);
.
c terminal
Comments
Post a Comment