diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69f88cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +xscii.o +xscii.ali +vt100.mod +xscii diff --git a/README.md b/README.md index 350f5c5..3257b1c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,10 @@ xscii -- Program for seeing ASCII table, if you want to change output style, do it in source. - Everything related to my libraries is clean of all warning options on Clang, GCC and Valgrind. -- I don't know what else to write here, program is being done in my free time, so expect more... +- I used to search for watermarked ASCII table images on the internet, and decided to write this. +- You can totally make the exact same program in like 10 lines of C code, but I'm me... +- I didn't even want to handle program arguments for this one, because it's so stupid in general. +- Also, I rewrote it in Ada for fun, in Fortran for pleasure and in assembly for laughs. Compile: ```bash @@ -19,3 +22,5 @@ Use: ```bash $ xscii ``` + +![screenshot](screenshot.png) diff --git a/compile.sh b/compile.sh index 0c0a53f..637c629 100644 --- a/compile.sh +++ b/compile.sh @@ -4,10 +4,8 @@ set -xe gcc -g -ansi -Wall -Wextra -Wpedantic -Werror -Ofast -o xscii xscii.c -# clang -o xscii xscii.c -# tcc -o xscii xscii.c -# flang -o xscii xscii.f90 # gfortran -o xscii xscii.f90 # gnatmake -o xscii xscii.adb +# fasm -o xscii xscii.fasm exit diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..14517ee Binary files /dev/null and b/screenshot.png differ diff --git a/xscii.c b/xscii.c index 24579f5..83a35da 100644 --- a/xscii.c +++ b/xscii.c @@ -93,7 +93,7 @@ static void echo_name (int character, int colour, int effect) { echo (name [character]); - out (" ", 24 - string_length (name [character])); + out (" ", 24 - string_length (name [character])); /* L: */ terminal_cancel (); }