Reputation: 20211
How can a Lazarus/FPC program that is executing a command via TProcess
detect an input prompt and create a graphical dialog for the input?
e.g. say I execute an ssh
command via TProcess
which requires a password to be input - how could it detect it, prompt for it with a graphical dialog and pass it on for the command to continue?
Upvotes: 0
Views: 227
Reputation: 587
Well, you have at least two choices:
dialog --passwordbox "Please enter password:" 10 40
zenity --password --title "Security question: "
Upvotes: 1