A-ads

How to install and use figlet in Termux

 Hallow my friends,are you want to know all the figlet commands for Termux?You are at the Right place .In this blogpost I will tell you all the figlet commands available for Termux.From start to end I will explain step by step with example.

What is Figlet

Figlet is a computer language which is which is use to generate ASCII text banner for terminal.Out of normal screen character Figlet can generate large characters for your terminal which looks like more attractive.

You can make your teminal welcome screen more professional using figlet.

How to install Figlet in Termux

Termux is a terminal emulator available for Android os . Termux allows to run linux command on it.To install figlet in termux use command

$ pkg update && pkg upgrade

Then

$ pkg install figlet

Then figlet will be installed in your Termux

Figlet command

To generate large characters on your terminal use command

$ figlet Technical B9T



Output at canter

If you want the output to be generate at the center of the terminal use -c flag like this

$ figlet -c B9T



As well as you can use -l flag and -r flag to generate the output at the left and at the right of the terminal respectively


Change output font

You can change figlet output fonts using -f flag.Change your directory to 
/data/data/com.termux/files/usr/share/figlet
Using command 

$
cd /data/data/com.termux/files/usr/share/figlet
 
To see the fonts available on your termux



Then select a font using -f flag as shown


$ figlet -f slant hallow world


Read input from a file

Figlet can take input from a txt file.Let us create a txt file
$ echo "hallow world" > n.txt

Now we have a txt file(n.txt),and we want to see its contents using figlet

$ figlet < n.txt




Post a Comment

0 Comments