Last active
November 17, 2019 17:15
-
-
Save Wendelstein7/f528f820d5eaff4aac1199e39a3da664 to your computer and use it in GitHub Desktop.
Generate a character box in lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for x = 0, 15 do | |
for y = 0, 15 do | |
c = string.format("%q", string.char(16 * x + y)):gsub("\"", ""):gsub("\n", "n") | |
c = string.rep(" ", 4 - #c) .. c | |
io.stdout:write(c) | |
end | |
io.stdout:write("\n") | |
end | |
--[[ OUTPUT: | |
\0 \1 \2 \3 \4 \5 \6 \7 \8 \9 \n \11 \12 \13 \14 \15 | |
\16 \17 \18 \19 \20 \21 \22 \23 \24 \25 \26 \27 \28 \29 \30 \31 | |
! \ # $ % & ' ( ) * + , - . / | |
0 1 2 3 4 5 6 7 8 9 : ; < = > ? | |
@ A B C D E F G H I J K L M N O | |
P Q R S T U V W X Y Z [ \\ ] ^ _ | |
` a b c d e f g h i j k l m n o | |
p q r s t u v w x y z { | } ~\127 | |
Ç ü é â ä à å ç ê ë è ï î ì Ä Å | |
É æ Æ ô ö ò û ù ÿ Ö Ü ø £ Ø × ƒ | |
á í ó ú ñ Ñ ª º ¿ ® ¬ ½ ¼ ¡ « » | |
░ ▒ ▓ │ ┤ Á Â À © ╣ ║ ╗ ╝ ¢ ¥ ┐ | |
└ ┴ ┬ ├ ─ ┼ ã Ã ╚ ╔ ╩ ╦ ╠ ═ ╬ ¤ | |
ð Ð Ê Ë È ı Í Î Ï ┘ ┌ █ ▄ ¦ Ì ▀ | |
Ó ß Ô Ò õ Õ µ þ Þ Ú Û Ù ý Ý ¯ ´ | |
± ‗ ¾ ¶ § ÷ ¸ ° ¨ · ¹ ³ ² ■ | |
]]-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment