Are you seeking a step-by-step guide that will show you how to install FIGlet in Termux on Android without rooting your device? Your search ends here.
Introduction
Among the most widely used command line utilities are FIGlet and Toilet which convert your plain text to ASCII characters. This computer program generates text banners composed of letters made up of conglomerations of ASCII characters, in various typefaces. In addition to its primary features, Figlet offers its users several additional options for customizing the style of plain text and the placement of it on the screen. The width, margin, padding, and space of the text appearing in the command line can be easily customized.
In this tutorial, we are going to learn about how to install FIGlet in Termux on Android without root.
How to Install and Run FIGlet in Termux
To install and Run FIGlet on your android device, you have to install the termux emulator and then download and install FIGlet packages from the repository server.
Let’s take a look at the steps in detail.
Step 1: Install Termux Emulator
First of all, you need to download and install the Termux emulator on your Android phone with the appropriate permissions. You can read my detailed article here.
Step 2: Upgrade Packages
Your binaries and packages will now need to be upgraded. And it is highly recommended, otherwise termux might throw unknown errors. Run the below command.
apt update && apt upgrade
Step 3: Install FIGlet Package
You can now continue to install FIGlet binaries from the repository server once the packages are upgraded. Run the below command to install FIGlet.
pkg install hydra
Step 4: Run FIGlet commands
You can then execute the commands once Figlet is installed successfully. Run the command as shown below.
figlet YOUR_TEXT
That’s all. Now your text will be shown with a stylish font on the termux screen. You can see the screenshot below.
Figlet useful command
Here are some commands to beautify text on the termux screen.
figlet -c YOUR_TEXT | Printed output to be created at the center. |
figlet -l YOUR_TEXT | Use -l to set the output to the left side of the screen. |
figlet -r YOUR_TEXT | Use -r to print it to the right. |
figlet -w 100 YOUR_TEXT | Use the full width of your terminal. Adjust -w 100 as per your desire. |
figlet -k YOUR_TEXT | To add a little space between the characters. |
Conclusion
There are several command line tools that can convert plain text into ASCII characters in order to customize the message body and console area. This CLI tool provides plenty of customization options for modifying plain text into different formats and characters. FIGlet is packed with almost all the characters in ASCII. In addition to helping you transform plain text into styled text, it also offers the flexibility to print the generated text into the left, right, or middle of the screen.
Thanks for reading this article. I hope that the above step by step guide helped you to install Figlet on your termux device.