Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display infobox in whiptail?

Tags:

bash

Why does this code not work in Bash?

whiptail --infobox "My Text" 0 0

The manual states:

whiptail --infobox text height width

So what is wrong?

like image 634
Charlie Avatar asked Oct 21 '12 17:10

Charlie


1 Answers

Due to a bug, the --infobox option in whiptail doesn't work in an xterm (ie. gnome-terminal). It does work on a regular console, however.

This seems to be a long-standing bug, which has been brushed off as non-reproducible when it was reported.

More recently it has again been reported in Launchpad.

If you need a working --infobox under xterm, you can use dialog.

like image 142
jcharaoui Avatar answered Sep 27 '22 22:09

jcharaoui