1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-12-21 21:49:40 -08:00
rc/sh/askey

28 lines
3.8 KiB
Bash
Executable file

#!/usr/bin/env sh
# compat: +ash +bash +dash +hush +ksh +mksh +oksh +osh +posh +yash +zsh
askey() {
printf '\033[100m 00 \033[m \033[100m 01 \033[m \033[100m 02 \033[m \033[100m 03 \033[m \033[100m 04 \033[m \033[100m 05 \033[m \033[100m 06 \033[m \033[100m 07 \033[m \033[100m 08 \033[m \033[100m 09 \033[m \033[100m 0A \033[m \033[100m 0B \033[m \033[100m 0C \033[m \033[100m 0D \033[m \033[100m 0E \033[m \033[100m 0F \033[m
\033[97;45m NUL \033[30;45m SOH STX ETX EOT ENQ ACK \033[97;45m BEL BS HT LF VT FF CR \033[30;45m SO SI \033[m
\\0 \\001 \\002 \\003 \\004 \\005 \\006 \\a \\b \\t \\n \\v \\f \\r \\016 \\017
\033[100m 10 \033[m \033[100m 11 \033[m \033[100m 12 \033[m \033[100m 13 \033[m \033[100m 14 \033[m \033[100m 15 \033[m \033[100m 16 \033[m \033[100m 17 \033[m \033[100m 18 \033[m \033[100m 19 \033[m \033[100m 1A \033[m \033[100m 1B \033[m \033[100m 1C \033[m \033[100m 1D \033[m \033[100m 1E \033[m \033[100m 1F \033[m
\033[30;45m DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB \033[97;45m ESC \033[30;45m FS GS RS US \033[m
\\020 \\021 \\022 \\023 \\024 \\025 \\026 \\027 \\030 \\031 \\032 \\e \\034 \\035 \\036 \\037
\033[100m 20 \033[m \033[100m 21 \033[m \033[100m 22 \033[m \033[100m 23 \033[m \033[100m 24 \033[m \033[100m 25 \033[m \033[100m 26 \033[m \033[100m 27 \033[m \033[100m 28 \033[m \033[100m 29 \033[m \033[100m 2A \033[m \033[100m 2B \033[m \033[100m 2C \033[m \033[100m 2D \033[m \033[100m 2E \033[m \033[100m 2F \033[m
\033[97;45m SP \033[m \033[30;44m ! " # $ %% & '\'' ( ) * + , - . / \033[m
\033[100m 30 \033[m \033[100m 31 \033[m \033[100m 32 \033[m \033[100m 33 \033[m \033[100m 34 \033[m \033[100m 35 \033[m \033[100m 36 \033[m \033[100m 37 \033[m \033[100m 38 \033[m \033[100m 39 \033[m \033[100m 3A \033[m \033[100m 3B \033[m \033[100m 3C \033[m \033[100m 3D \033[m \033[100m 3E \033[m \033[100m 3F \033[m
\033[30;42m 0 1 2 3 4 5 6 7 8 9 \033[m \033[30;44m : ; < = > ? \033[m
\033[100m 40 \033[m \033[100m 41 \033[m \033[100m 42 \033[m \033[100m 43 \033[m \033[100m 44 \033[m \033[100m 45 \033[m \033[100m 46 \033[m \033[100m 47 \033[m \033[100m 48 \033[m \033[100m 49 \033[m \033[100m 4A \033[m \033[100m 4B \033[m \033[100m 4C \033[m \033[100m 4D \033[m \033[100m 4E \033[m \033[100m 4F \033[m
\033[30;44m @ \033[m \033[30;103m A B C D E F G H I J K L M N O \033[m
\033[100m 50 \033[m \033[100m 51 \033[m \033[100m 52 \033[m \033[100m 53 \033[m \033[100m 54 \033[m \033[100m 55 \033[m \033[100m 56 \033[m \033[100m 57 \033[m \033[100m 58 \033[m \033[100m 59 \033[m \033[100m 5A \033[m \033[100m 5B \033[m \033[100m 5C \033[m \033[100m 5D \033[m \033[100m 5E \033[m \033[100m 5F \033[m
\033[30;103m P Q R S T U V W X Y Z \033[m \033[30;44m [ \\ ] ^ _ \033[m
\033[100m 60 \033[m \033[100m 61 \033[m \033[100m 62 \033[m \033[100m 63 \033[m \033[100m 64 \033[m \033[100m 65 \033[m \033[100m 66 \033[m \033[100m 67 \033[m \033[100m 68 \033[m \033[100m 69 \033[m \033[100m 6A \033[m \033[100m 6B \033[m \033[100m 6C \033[m \033[100m 6D \033[m \033[100m 6E \033[m \033[100m 6F \033[m
\033[30;44m ` \033[m \033[30;43m a b c d e f g h i j k l m n o \033[m
\033[100m 70 \033[m \033[100m 71 \033[m \033[100m 72 \033[m \033[100m 73 \033[m \033[100m 74 \033[m \033[100m 75 \033[m \033[100m 76 \033[m \033[100m 77 \033[m \033[100m 78 \033[m \033[100m 79 \033[m \033[100m 7A \033[m \033[100m 7B \033[m \033[100m 7C \033[m \033[100m 7D \033[m \033[100m 7E \033[m \033[100m 7F \033[m
\033[30;43m p q r s t u v w x y z \033[m \033[30;44m { | } ~ \033[m \033[30;45m DEL\033[m
'
}
[ -n "${preload+-}" ] || askey "$@"