💾 Archived View for freeshell.de › tldr › whiptail.gmi captured on 2023-01-29 at 05:26:20. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

whiptail

Display text-based dialog boxes from shell scripts.

More information.

whiptail --title "{title}" --msgbox "{message}" {height_in_chars} {width_in_chars}
whiptail --title "{title}" --yesno "{message}" {height_in_chars} {width_in_chars}
whiptail --title "{title}" --yes-button "{text}" --no-button "{text}" --yesno "{message}" {height_in_chars} {width_in_chars}
{result_variable_name}="$(whiptail --title "{title}" --inputbox "{message}" {height_in_chars} {width_in_chars} {default_text} 3>&1 1>&2 2>&3)"
{result_variable_name}="$(whiptail --title "{title}" --passwordbox "{message}" {height_in_chars} {width_in_chars} 3>&1 1>&2 2>&3)"
{result_variable_name}=$(whiptail --title "{title}" --menu "{message}" {height_in_chars} {width_in_chars} {menu_display_height} "{value_1}" "{display_text_1}" "{value_n}" "{display_text_n}" ..... 3>&1 1>&2 2>&3)
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY