PDA

View Full Version : dialog inputbox - a default input value



sebastian.s
February 18th, 2013, 08:52 PM
Say i want to create a simple inputbox like this:


dialog --inputbox "Please enter a hostname" 10 60Is there a way to get a default value already filled in the input field? Say i would like it to say "ubuntu" in the input field. Thanks in advanced :smile:

schragge
February 18th, 2013, 09:00 PM
It's the fourth parameter


dialog --inputbox "Please enter a hostname" 10 60 ubuntu

sebastian.s
February 18th, 2013, 09:27 PM
It's the fourth parameter


dialog --inputbox "Please enter a hostname" 10 60 ubuntu


A that was simple. i should have figured that out myself ](*,)Anyway really appreciate your help.