Linux Lite Forums

Development => Scripting and Bash => Topic started by: bitsnpcs on February 01, 2018, 12:58:50 PM

Title: coloured text in terminal
Post by: bitsnpcs on February 01, 2018, 12:58:50 PM
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: [Select]
sudo apt-get install toilet
Examples

(https://preview.ibb.co/mdBSDm/Screenshot_2018_02_01_11_34_34.png)

(https://preview.ibb.co/inHHDm/Screenshot_2018_02_01_11_35_02.png)

Code: [Select]
toilet --help

(https://preview.ibb.co/kSxvzR/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.
 
Title: Re: coloured text in terminal
Post by: bitsnpcs on February 02, 2018, 01:30:27 AM
Hold down Ctrl and Alt keys and press t (Ctrl Alt + t)

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

Code: [Select]
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

(https://preview.ibb.co/jMvCym/toilet2.png)


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

Code: [Select]
while true; do echo "$(date +'%D %T' | toilet -f term -F border --gay)"; sleep 1; done
(https://preview.ibb.co/c4Kxym/toilet3.png)

Title: Re: coloured text in terminal
Post by: justme2 on February 02, 2018, 05:22:30 AM
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 :P
Title: Re: coloured text in terminal
Post by: Jerry on February 02, 2018, 06:08:11 AM
I would prefer a different title, I am not without a sense of humour for the record :)
Title: Re: coloured text in terminal
Post by: justme2 on February 02, 2018, 06:34:57 AM
I would prefer a different title, I am not without a sense of humour for the record :)

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.
Title: Re: coloured text in terminal
Post by: bitsnpcs on February 02, 2018, 08:52:01 AM
I would prefer a different title, I am not without a sense of humour for the record :)
Title changed