标签: shell command-line prompt freepascal lazarus
通过TProcess执行命令的Lazarus / FPC程序如何检测输入提示并为输入创建图形对话框?
TProcess
e.g。说我通过ssh执行TProcess命令,需要输入密码 - 它如何检测到它,用图形对话框提示它并传递给命令继续?
ssh
答案 0 :(得分:1)
嗯,你至少有两个选择:
dialog --passwordbox "Please enter password:" 10 40
zenity --password --title "Security question: "