$ sudo apt-get install dialog
result=$(dialog --output-fd 1 --inputbox "Enter some text" 10 30) echo Result=$result