/ ************************************************************************* * * 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); main() { clrscr(); } void clrscr(void) { printf("\033[2J"); /* Clear the entire screen. */ printf("\033[0;0f"); /* Move cursor to the top left hand corner */ }
file: /Techref/language/ccpp/Cref/EXAMPLES/clrscr.c, 0KB, , updated: 1997/10/15 21:26, local time: 2024/12/4 18:52,
3.135.214.139:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/TECHREF/language/ccpp/Cref/EXAMPLES/clrscr.c"> language ccpp Cref EXAMPLES clrscr</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.