Thread: Escape Sequences

  1. #1

    Escape Sequences

    I found escape sequences on the Internet one time and at the time could not use them properly, yesterday i found two of them being used correctly in a function to clear the screen, they where:

    printf("\033[2J"); //Clears the Screen
    printf("\033[0;0f"); // Sets cursor back to position (0,0)

    There where many more in the list i found but due to an unfortunate mishap (I deleted the file) i do not have them anymore. I was wondering if any one else knew of more, or perhaps (hopefully) all of them. I would appreciate it if some one could post them as they would be useful to all of to use.
    Yours truly


  2. #2
    Registered User
    Join Date
    Sep 2001
    I would also be interested if any one knows of them.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User alex's Avatar
    Join Date
    Sep 2001
    If you are using DOS/Windows, be sure to load ANSI.SYS from your config.sys file, and search the web for "ansi.sys escape sequences".
    If you are using unix/linux, search for "console_codes", "vt100" or "vt102"

    Hope this helps...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LoadFromFile() from a txt
    By Snoopy104 in forum C++ Programming
    Replies: 6
    Last Post: 03-14-2006, 10:05 AM
  2. Interpreting literal escape sequences from a file...
    By Sebastiani in forum C++ Programming
    Replies: 1
    Last Post: 07-08-2003, 02:00 PM
  3. Using escape sequences as user inputs
    By musayume in forum C Programming
    Replies: 4
    Last Post: 12-11-2001, 09:35 AM
  4. ANSI Escape Sequences OR Scan of keyboard
    By Samppa in forum Linux Programming
    Replies: 3
    Last Post: 10-24-2001, 12:15 PM
  5. Escape sequences in VC++
    By emilyh in forum Windows Programming
    Replies: 7
    Last Post: 09-26-2001, 07:02 AM