10

I don't see what ^H has in common with "backspace". Why is backspace represented that way in many locations?

Henke
  • 813
  • 1
  • 8
  • 20
Billy ONeal
  • 8,141
  • 14
  • 61
  • 91

4 Answers4

11

^ represents holding the Ctrl button. With any of the characters from @ to _, it generates a character 64 (0x40) positions earlier in the ASCII table.

Ignacio Vazquez-Abrams
  • 111,361
  • 10
  • 201
  • 247
  • 1
    I'll just add that back in the DOS days, the CTRL-H combo did work as the backspace key. I don't recall whether it *always* worked, or was software specific, but I do remember it working for something. –  Nov 19 '10 at 20:39
  • Ctrl-H still works at the CMD prompt (and in Powershell) in Windows and at the shell prompt in most terminals. – Dennis Williamson Nov 20 '10 at 09:08
5

This is because of where it comes in the ASCII table, there is no significance it's assignment to H other than that's the order in which controls were assigned to the ASCII charachters.

See this wiki on ASCII; ASCII Explained

It appears so frequently in computing due to the commonality of ASCII and it's extensive use.

mhollander38
  • 213
  • 3
  • 9
5

See http://en.wikipedia.org/wiki/Caret_notation - ^H simply means 0x08 because H is the 8th letter of the alphabet. There's nothing linking this to the backspace functionality except the fact that 0x08 was assigned the BS function code. It could just as easily have been 0x09, then we'd be writing ^G.

vwegert
  • 303
  • 2
  • 4
  • 14
3

"This sequence is still used humorously for epanorthosis by computer literates, denoting the deletion of a pretended blunder, much like a strikethrough."

"My slave-dri^H^H^H^H^H^H^H^H^Hboss decided to stall the project."

Backspace - Wikipedia

@Matt - Queue the old folks, haha!

Bratch
  • 568
  • 2
  • 7
  • 15
  • 1
    This phenomenon is actually why I asked about it. – Billy ONeal Nov 20 '10 at 00:53
  • 2
    Actually, I believe it was a slashdot comment on an article about a security exploit that worked on all operating systems (it broke DNS, IIRC), and someone wrote "Good thing I'm using Linux^H^H^H^H^HMac^H^H^HWindows^H^H^H^H^H^H^H Shit.") – Billy ONeal Nov 20 '10 at 01:00
  • Yep, in addition to the phenomenon, WikiPedia's article explains it well, including the 8th letter of the alphabet, etc. I've seen it on Slashdot many times. – Bratch Nov 20 '10 at 23:05