Cool Snippet

Just found this interesting

* Purpose: Clear the screen with VT100 escape codes. This can be done
* with conio.h on PCs – non standard code. Or curses.h, bit of
* a fag…
* Author: M.J. Leslie
* Date: 22-Jun-94

void clrscr(void);


void clrscr(void)
printf(“33[2J”); /* Clear the entire screen. */
printf(“33[0;0f”); /* Move cursor to the top left hand corner */
Great transparent effect, also in GNOME



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: