Code to output backspaces as '\b' chars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rick marshall
    New Member
    • Aug 2008
    • 1

    #1

    Code to output backspaces as '\b' chars

    I want to make this rogram which ,on inserting a string from keyboard substitute a backsace with /b.Here the difficulty I am facing that backsace is not read by comiler even after using getch function and scanf function
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Maybe the backspace key on your keyboard is broken as well as your 'p' key.

    kind regards,

    Jos

    Comment

    • arnaudk
      Contributor
      • Sep 2007
      • 425

      #3
      You'll need to capture keyboard interrupts and there are no standard C/C++ libraries which can do this as it's platform-dependent. There are third-party libraries which can help you with this, you might like to check out the Allegro API for example.

      Comment

      Working...