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?
Well, you have at least two choices:
dialog --passwordbox "Please enter password:" 10 40
zenity --password --title "Security question: "