/asciitable

Small Python3 script with no dependencies that prints the ASCII table like asciitable.com.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

asciitable

Small Python3 script with no dependencies that prints the ASCII table like asciitable.com.

demo

Why?

I got bored of going to asciitable.com everytime I needed to look at a couple of ASCII characters. I also had no idea that you can run man ascii on GNU systems and get an ascii table.

How to Run

Run it with ./asciitable.py or python3 asciitable.py

You can also give it specific ranges or characters to print like:

demo2

Check the options here:

asciitable.py - ASCII Table Printer

            usage: asciitable.py [ranges] [options]
                   ranges can be comma separated numbers or ranges seperated by -
                   ranges must be right after asciitable.py.
                   Use x for hex, and o for octal.
                   Example: asciitable.py 2,x41,20-o45

                -h/--help - Print this help
                -nc/--no-colour - Disable Colours
                -c/--colours [tablecolour] [textcolour]
                        Choose the colours for the table. (Default: blue green)
                        (magenta, blue, green, yellow, red, cyan, black, white)

You can also copy it to /usr/bin like:

sudo cp asciitable.py /usr/bin/asciitable

Or you could make an alias for it using your preferred shell by adding this line to the rc file (.bashrc for example):

alias asciitable="/path/to/asciitable.py"

Go nuts with it, enjoy 😃!

Contributions are more than welcome, as usual.