Thread: Special characters

  1. #1
    Registered User
    Join Date
    Oct 2009

    Special characters

    Hi, I wanted to ask about special characters in C such as \n, \r, \b etc. Is there a character to move a cursor to the start of the previous line or at least to the previous line?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    No. Standard C doesn't really deal with terminal manipulation. You could use the curses library or something, and use your arrow keys to move around, but whatever the case, it's going to involve more work than I think you think it does.

    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Sep 2006
    No simple editing type movement commands unless you have conio.h or curses/ncurses library.

    A lower level is available in Windows using the SetConsoleCursorPosition() (and similar) functions in the Windows API.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-16-2009, 06:00 AM
  2. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  3. special characters removing from srting
    By cnu_sree in forum C Programming
    Replies: 5
    Last Post: 06-06-2007, 08:30 PM
  4. Special characters
    By WarBaboon in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2003, 09:27 PM
  5. Special (non) Keyboard Characters
    By TechWins in forum C++ Programming
    Replies: 3
    Last Post: 05-01-2002, 12:08 AM