Character Listing
Posted by snang
Saturday, March 20, 2004
Description: This alias will display all 255 standard ASCII characters.  Handy for trying to find the $chr() number for a letter or symbol.

Usage: /chars
Paste the following code into your "Aliases"


chars {
  clear @Characters
  window -k0 @Characters
  window -h @Characters
  aline @Characters [^B]Beginning of Listing[^B] $chr(91) $+ 255 ASCII Characters $+ $chr(93)
  aline @Characters -
  var %char = 0
  while (%char < 255) {
    inc %char
    if (%char = 32) { aline @Characters $ $+ chr( $+ %char $+ ) == $chr( $+ %char $+ ) (Space) }
    else { aline @Characters $ $+ chr( $+ %char $+ ) == $chr( $+ %char $+ ) }
  }
  aline @Characters - | aline @Characters [^B]End of Listing[^B] $chr(91) $+ 255 Listed Characters $+ $chr(93)
  window -w @Characters
  window -a @Characters
}
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world