Linux Lite Forums

Full Version: coloured text in terminal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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]

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
I would prefer a different title, I am not without a sense of humour for the record Smile
(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.
(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