14 lines
499 B
Text
14 lines
499 B
Text
module ShowAsciiTable {
|
|
@Inject Console console;
|
|
void run() {
|
|
for (Int offset : 0..<16) {
|
|
for (Int ascii = 32+offset; ascii < 128; ascii += 16) {
|
|
console.print($|{ascii.toString().rightJustify(3)}/\
|
|
|{ascii.toByte().toByteArray()}: \
|
|
|{new Char(ascii).quoted().leftJustify(5)}
|
|
, suppressNewline=True);
|
|
}
|
|
console.print();
|
|
}
|
|
}
|
|
}
|