Thread: Backspace in terminal

  1. #1
    Ex scientia vera
    Join Date
    Sep 2007
    Posts
    477

    Backspace in terminal

    Hey there.

    I've been googling around for a possible escape character to erase the last character printed. Now, I know that that's what the backspace character is supposed to do(\b), but for some reason, it doesn't work.

    I can easily think of a (rather complex) way in windows, using the API which deals with modifying position of the cursor in cmd, but I was wondering how it could be done in *nix.

    I'm currently on *nix, so that's my primary concern. I can't really seem to find any authoritative information on the subject.

    All help greatly appreciated,

    IceDane

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    /b doesn't erase it just moves the cursor.

    http://cboard.cprogramming.com/showthread.php?t=90719

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Clearing Terminal
    By mrginger in forum C Programming
    Replies: 3
    Last Post: 04-15-2009, 11:58 AM
  2. telnet server, how to program a backspace
    By Mastermosley in forum C# Programming
    Replies: 5
    Last Post: 03-22-2009, 02:14 AM
  3. Console, Terminal and Terminal Emulator
    By lehe in forum C Programming
    Replies: 4
    Last Post: 02-15-2009, 09:59 PM
  4. backspace info
    By kermit in forum Linux Programming
    Replies: 4
    Last Post: 11-28-2003, 02:55 PM
  5. Richedit backspace character????
    By gbaker in forum Windows Programming
    Replies: 0
    Last Post: 08-12-2003, 11:38 AM