Text-based menus and information pages

Whip It Up

© Lead Image © PazMadrid, morguefile.com

© Lead Image © PazMadrid, morguefile.com

Article from Issue 270/2023
Author(s):

Whiptail interfaces add menus and information pages to your Raspberry Pi projects.

Text interfaces can be extremely useful for Windows or secure shell (SSH) clients that need to connect to your Linux or Raspberry Pi systems. One of the simplest options for creating text interfaces is Whiptail [1], which comes preinstalled on Raspbian and many Linux systems. The Raspberry Pi configuration tool, raspi-config (Figure 1), is a good illustration of how Whiptail can be used.

Figure 1: The Raspberry Pi configuration tool raspi-config uses Whiptail.

In this article, I introduce Whiptail with three small projects. The first creates a menu interface for some common Linux diagnostic tools, the second controls Raspberry Pi output pins, and the final uses Python to display Pi sensor data.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Let's Dialog!

    Create dialog boxes with checkboxes, progress bars, and many other features that users may find helpful when working at the command line.

  • Julia on the Pi

    Create GUIs and a web app that connects to sensors.

  • OpenWrt on a Pi

    Light open source router firmware breathes new life into your old Raspberry Pi.

  • Xonsh

    Create lightweight Raspberry Pi scripts with Xonsh, a Python shell that lets you write scripts in Python with Bash commands mixed in.

  • Bash Web Server

    With one line of Bash code, you can create a Bash web server for quickly viewing the output from Bash scripts and commands.

comments powered by Disqus