Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Command line fuckery

Name: Anonymous 2007-10-16 9:23

I want to write several lines to the console, but after each line, I want to clear the screen and then write the next line. From what I gather I can use the "\x08" character (backspace) to achieve this. How do I cleared screen?

Name: Anonymous 2007-10-16 16:13

>>9
\r is just a carriage return, I'm pretty sure it doesn't do that on *any* operating system. For reference, it doesn't work as you described on either Windows or BSD. I can't speak for any other backwards operating systems.

>>8
Happen to have an example of how to use this? I can't get it to work -

#include <cstdio>

int main( int argc, char* argv[] ) {
    char p[] = { 0x9b, '2', 'J', 0 };
    printf( "%s%s", "DESUDESUDESU", p );
    return 0;
}


Output: DESUDESUDESU›2J

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List