0

シンプルなインターフェースに Yad を使用しています。

私が抱えている問題は、フィールド自体で Enter キーを押すと、標準出力に User フィールドの値が含まれることです。ただし、「保存」ボタンを押すと、標準出力には何もありません。

これがスクリプトです!

res=$(yad \
--width=600 \
--title="Config" \
--text="COnfiguration options" \
--form \
--field="User" \
--button="Save:1" \
--button="Cancel:2" \
--center)

ret=$?
echo $ret
echo $res
4

1 に答える 1