Linux Lite Forums
coloured text in terminal - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7)
+--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32)
+--- Thread: coloured text in terminal (/showthread.php?tid=4912)



coloured text in terminal - bitsnpcs - 02-01-2018

Hold down Ctrl and Alt keys and press t (Ctrl Alt + t)
copy/paste (or type) in to your terminal -
Enter your password when asked.

Code:
sudo apt-get install toilet

Examples

[Image: Screenshot_2018_02_01_11_34_34.png]

[Image: Screenshot_2018_02_01_11_35_02.png]

Code:
toilet --help


[Image: Screenshot_2018_02_01_11_36_25.png]

For a quick start to begin with you can use the commands in the above images and just change "bitsnpcs" in command to your nym.



Re: coloured text in terminal - bitsnpcs - 02-02-2018

Hold down Ctrl and Alt keys and press t (Ctrl Alt + t)

Copy/paste (or type) in to your terminal -

Code:
while true; do echo "$(date '+%D %T' | toilet -f term -F border --metal)"; sleep 1; done

To exit - Hold down Ctrl key and press C (Ctrl+C)

An example

[Image: toilet2.png]


Here is the rainbow version, output colours have higher contrast.

Code:
while true; do echo "$(date +'%D %T' | toilet -f term -F border --gay)"; sleep 1; done

[Image: toilet3.png]




Re: coloured text in terminal - justme2 - 02-02-2018

Am I the only one who thought this thread was going to be about locating 'safe and clean' public toilets (bathrooms, washrooms, or whatever you may call them) ! I had to google 'linux toilets' to find the answer.

;D ;D ;D Tongue


Re: coloured text in terminal - Valtam - 02-02-2018

I would prefer a different title, I am not without a sense of humour for the record Smile


Re: coloured text in terminal - justme2 - 02-02-2018

(02-02-2018, 11:08 AM)Jerry link Wrote: I would prefer a different title, I am not without a sense of humour for the record Smile

It wasn't meant as criticism of the title, by the way! But it can be confusing, I wonder if was humour on the part of the OP. Maybe toilet is not understood in other languages but I discovered that it's a linux acronym.


Re: coloured text in terminal - bitsnpcs - 02-02-2018

(02-02-2018, 11:08 AM)Jerry link Wrote: I would prefer a different title, I am not without a sense of humour for the record Smile
Title changed