examples/bash/whiptail.sh

10 lines
190 B
Bash
Raw Normal View History

#!/usr/bin/env bash
Height=$(tput lines)
Width=$(tput cols)
Height=$((Height / 2))
Width=$(((Width * 2) / 3))
whiptail --yesno --title "Hello!" "This is a whiptail window" $Height $Width