开发者

Two dialog boxes at once in bash script

开发者 https://www.devze.com 2023-02-08 04:41 出处:网络
I have my bash dialog --menu box acting nicely, but i do need second one when i choose particular option like \"change user\". I want that \"user list\" --menu dialog box to open on top of开发者_如何学

I have my bash dialog --menu box acting nicely, but i do need second one when i choose particular option like "change user". I want that "user list" --menu dialog box to open on top of开发者_如何学编程 the first one(which will be in background, but won't disappear completely) with specific coordinates.

Is that possible?

regards kasper


Chain the two with --and-widget:

dialog --menu "menu 1"  ........  --and-widget --begin $x $y --menu "menu 2" .......

Menu 1 will show and once you press enter it will remain in place while menu 2 will show and take control (like a new "popup window").

0

精彩评论

暂无评论...
验证码 换一张
取 消