Page 1 of 1

ASCII console color graphics for Fossapup64

Posted: Wed Sep 30, 2020 6:23 pm
by Grey

Update: colored eyes and inscription. Update-2: added variant with escape sequences.
Hi everyone. I made for Fossapup console color ASCII graphics here at my leisure (remove extension .txt, make executable and run with right mouse click and Run in Terminal)

ASCII-fossa.txt
(2.32 KiB) Downloaded 72 times

Variant with escape sequences:

ASCII-fossa-esccodes.txt
(2.52 KiB) Downloaded 65 times

There are at least three use cases:
1. In your own scripts, for design and branding, let's say :)
2. You can add all this shit to the .bashrc file and then it will always be in the console-terminal.
3. Maybe Phil will add that to the boot of system and then it will be a lot of fun. See the next post on how to add this to the boot screen.
The new version is here:
viewtopic.php?p=19151#p19151

ascii_fossa_scr1.png
ascii_fossa_scr1.png (210.15 KiB) Viewed 713 times

Showing our ASCII graphics at system boot

Posted: Sat Jan 23, 2021 7:02 pm
by Grey

To get your ASCII graphics to be displayed in the console when Fossapup boots up, you need to modify init file inside initrd.gz.
1. Unpack initrd.gz.
2. Open init file in Geany and find line 720. We insert our ASCII graphics starting from line 721 (up to the line starting with [ ! "$LOGLEVEL" ].
3. Select all files in the folder with unpacked initrd.gz, right-click on any file, select 'Open With ...' and specify PackIt.
4. In PackIt select 'cpio' in the left column and 'gzip' in the right column. We package it with the name initrd.cpio.gz.
5. Remove '.cpio' from the name and we end up with an initrd.gz file with our ASCII graphics appearing when Fossapup64 boots up.
It is especially good when there are save folders or save files, then the next lines of text do not move our graphics up and are displayed on a separate frame. The higher bootloader screen resolution, the better - grub2 and grub4dos let you customize the screen.
Please note that in the boot console, our little animal is brown and in the terminal of an already running system it is yellow. This is not a bug, this is a feature :)

fossa_ascii_initrd.png
fossa_ascii_initrd.png (19.86 KiB) Viewed 625 times

Re: ASCII console color graphics for Fossapup64

Posted: Tue Feb 23, 2021 7:00 pm
by Grey

The same, but as an ELF 64-bit LSB executable file :)

confossa.tar
(10 KiB) Downloaded 59 times

Maybe someday I'll make a version in motion, like the SL (Steam Locomotive) ( https://github.com/mtoyoda/sl ), but with a fossa instead of the D51/C51 locomotives.


New format and different way to add to .bashrc

Posted: Sat Mar 06, 2021 6:18 pm
by Grey

Is the script too big and crap a lot of space inside .bashrc? I think, yes. New plan. Put this file in root directory next to .bashrc:

ASCII-fossa.utf8ans.gz
(481 Bytes) Downloaded 60 times

No need to unpack! It is gzipped "ASCII text, with CRLF line terminators, with escape sequences". Now the escape sequences are used directly, plus it is packed, so the file is almost five times smaller than before.
And most importantly, now you can put just one command in /root/.bashrc:

Code: Select all

zcat ~/ASCII-fossa.utf8ans

The .gz extension can be omitted from the script.
Concatenation helps us save space and hassle.
Puppy is a doggie, but this time we got help from the zcat command :)