Difference between revisions of "American Standard Code for Information Interchange"

From NetHackWiki
Jump to navigation Jump to search
(DEC/IBM graphics are not ASCII and appear in tty mode; colored characters don't have an ASCII representation. comma in Rogue level.)
m (Wikia screwing with thumbnail positioning apparently caused the image placement to not match the article)
Line 6: Line 6:
 
{{ASCII}}
 
{{ASCII}}
  
The characters in the table to the left link to their informational page. The goal is to create an article in [[NetHackWiki]] for every character. In the article, mention which [[monster]] or [[object]] that character represents, and what that key does from the keyboard. Try to link to other articles; for example, [[d]] should link to both [[dog]] and [[drop]].
+
The characters in the table to the right link to their informational page. The goal is to create an article in [[NetHackWiki]] for every character. In the article, mention which [[monster]] or [[object]] that character represents, and what that key does from the keyboard. Try to link to other articles; for example, [[d]] should link to both [[dog]] and [[drop]].
  
 
NetHack also uses some non-printable ASCII characters for commands. Those are commands that use [[Ctrl|{{kbd|Ctrl}}]] key. Pressing {{kbd|Ctrl}} and another character sends a non-printable character. [[Alt|{{kbd|Alt}}]] key has similar function.
 
NetHack also uses some non-printable ASCII characters for commands. Those are commands that use [[Ctrl|{{kbd|Ctrl}}]] key. Pressing {{kbd|Ctrl}} and another character sends a non-printable character. [[Alt|{{kbd|Alt}}]] key has similar function.

Revision as of 15:17, 19 November 2010

The American Standard Code for Information Interchange, which everyone calls ASCII, is a character set which a computer uses to store characters. ASCII specifies a method for computers to store printable characters such as letters A to Z, a to z, digits 0 to 9, punctuation, and spaces. ASCII also includes control characters such as newline. Most computers either use ASCII, or a superset of ASCII that adds more characters, such as accented letters, Cyrillic letters, CJK characters, or hieroglyphics.

NetHack uses ASCII for everything. The source code is in ASCII. If you play in tty mode (without DECgraphics, IBMgraphics, or color), everything on the screen is ASCII. Also, ASCII corresponds nicely with the keys found on most QWERTY keyboards in the United States. In fact, in modern NetHack 3.x.x, the dungeon contains every printable ASCII character except "6", "7", "8", and "9"; "," (the comma) appears only on the Rogue level. Some older versions of NetHack did use "8" for Medusa and "9" for giants, but NetHack 3.0.0 made monster symbols refer to classes of monsters rather than necessarily single monsters, and now Medusa is @ and giants are H.

Printable ASCII characters
~ ! @ # $ % ^ & * ( ) _ + space
` 1 2 3 4 5 6 7 8 9 0 - = { } |
Qq Ww Ee Rr Tt Yy Uu Ii Oo Pp : " [ ] \
Aa Ss Dd Ff Gg Hh Jj Kk Ll ? ; ' Ctrl
Zz Xx Cc Vv Bb Nn Mm , . / < > Alt


The characters in the table to the right link to their informational page. The goal is to create an article in NetHackWiki for every character. In the article, mention which monster or object that character represents, and what that key does from the keyboard. Try to link to other articles; for example, d should link to both dog and drop.

NetHack also uses some non-printable ASCII characters for commands. Those are commands that use [[Ctrl|Ctrl]] key. Pressing Ctrl and another character sends a non-printable character. [[Alt|Alt]] key has similar function.

For technical reasons, angle brackets, curly brackets, square brackets, hash marks, pipes, or plus signs can not be used in the names of articles. Also, an article name cannot contain only underscores, and it cannot consist of exactly one or two dots. Thus all of those articles have words for names.


This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.