Saturday, July 11, 2015

Text in batch files.

Saw this pic and thought it was an interesting login. Using ., ", d, Y, and P on the corners was certainly inventive;


To make it easier to duplicate the printout we split the text into two lines into two lines.

    888  888    888         d8888                  888     
    888  888    888        d88888                  888      
 88888888888888 888       d88 888                  888     
    888  888    888      d88  888 8888888 .d8888b  88888b. 
    888  888    888     d88   888 8888"  d88P"     888 "88b
 88888888888888 YOP    d88    888 888    888       888  888b
    888  888          d8888888888 888    Y88b.     888  888b
    888  888    888  d888     888 888     "Y8888P  888  888  

                     888       d8b                   Y88b   d88P
                     888       YOP                    Y88b d88P
                     888                               Y88u88P
                     888       888 88888b.  888  888    Y888P
                     888       888 888 "88b 888  888    d888b
                     888       888 888  888 888  888   d88888b
                     888       888 888  888 Y88b 888  d88P Y88b
                     888888888 888 888  888  "Y88888 d888P  Y88b

If you copy one line at a time you can piece it back together. Here is yet another, but you can type it in.



Then there is snoopycal.sh. Invoke with ./snoopycal.sh
echo "           ,-~~-.___.                                         ---------"
echo "          / ()=(()   \\                                         $1 $2"
echo "         (   (        0                                       ---------"
echo "          \\._\\, ,----'"
echo "     ##XXXxxxxxxx"
echo "            /  ---'~;"
echo "           /    /~|-"
echo "         =(   ~~  |"
echo "   /~~~~~~~~~~~~~~~~~~~~~\\"
echo "  /_______________________\\"
echo " /_________________________\\"
echo "/___________________________\\"
echo "   |____________________|"
echo "   |____________________|"
echo "   |____________________|"
echo "   |                    |"
echo ""
cal $1  $2


$ ./snoopycal.sh 03 1982
           ,-~~-.___.                                         ---------
          / ()=(()   \                                         03 1982
         (   (        0                                       ---------
          \._\, ,----'
     ##XXXxxxxxxx
            /  ---'~;
           /    /~|-
         =(   ~~  |
   /~~~~~~~~~~~~~~~~~~~~~\
  /_______________________\
 /_________________________\
/___________________________\
   |____________________| 
   |____________________|
   |____________________|
   |                    |

     March 1982       
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 25 26 27  
28 29 30 31 

Then there is the good old shark.

The programs included with the GNU/Linux system are free 
software. The exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

   ------------------------------------------------------------------------

               /)
          o                 /' )
                           /'   (                          ,.
                        __/'     )                        .' `;
         o      _.-~~~~'          ``---..__             .'   ;
           _.--'  b)                       ``--...____.'   .'
          (     _.      )).      `-._                     <
           `\|\|\|\|)-.....___.-     `-.         __...--'-.'.
            `---......____...---`.___.'----... .'         `.;
                                            `-`             `

   This machine is for the exclusive use of OE.
   Anyone attempting to gain, or gaining access other
   than as specifically authorized will be prosecuted
   under all applicable statutes plus all applicable
   civil rules for damages.

You can find lots of ascii graphics on the net. Note you may have to use \\ for \ symbols for the \ to show up.

You can also convert current files to test with  img2txt -w 80 -f ansi ./caca.png

Original picture:


Then converted with:
$  img2txt -W 60 -f ansi foot.png


$ img2txt -W 60 -f ansi foot.png > foot.txt
$ cat foot.txt

Also look at jp2a.
$ convert foot.png foot.jpg
$ jp2a foot.jpg



You could also pipe this picture to a file.


No comments:

Post a Comment