Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the terminal code for the old square ASCII character used in the original Rogue game?

Here's a game that uses it as its main character:

share|improve this question
Related. – Daniel Beck Dec 30 '11 at 7:38
Not really, because that's a different character, apparently. The dos console doesn't recognize it when I paste it in. Edit: Actually, it worked ok in dos, just not in Notepad with the Terminal font. – Nick Dec 30 '11 at 7:42
A smiley face is not a character in standard ASCII. – iglvzx Dec 30 '11 at 7:44
@Nick And that's why I only linked to it, instead of voting to close your question as duplicate. – Daniel Beck Dec 30 '11 at 8:13
It would be a good question to investigate why terminals display the SOH and SOT characters as smileys, and the history in that tradition. – iglvzx Dec 30 '11 at 8:16
up vote 0 down vote accepted

That chars equals to SOH (White face) & SOT (Black Face)

Binary  Oct Dec Hex Abbr    [a] [b]    Name
000 0001    001 1   01  SOH ␁   ^A     Start of Header
000 0010    002 2   02  STX ␂   ^B     Start of Text
share|improve this answer

enter image description here

The display system for the original IBM PC in text mode had a very simple memory mapping for the 80x24 text screen. You could poke values into bytes in a certain area of memory and characters would appear on the display. The characters for each byte value were determined by a video ROM which had bitmapped display characters for all 256 values of each byte. This included displayable characters for ASCII control characters (0-31).

Many contemporary printers had the same character set and could often be set into a literal-print mode where these control characters were printed rather than acted on (a carriage return would be printed as a character, it would not cause the print head to return to the left edge of the paper).

See Wikipedia

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.