Special characters

This is a discussion on Special characters within the C Programming forums, part of the General Programming Boards category; Hi, I wanted to ask about special characters in C such as \n, \r, \b etc. Is there a character ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    16

    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
    Posts
    14,826
    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.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    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, 08:27 PM
  5. Special (non) Keyboard Characters
    By TechWins in forum C++ Programming
    Replies: 3
    Last Post: 05-01-2002, 12:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21