为什么这段代码在 Bash 中不起作用?

whiptail --infobox "My Text" 0 0

该手册指出:
whiptail --infobox text height width

那么有什么问题呢?

最佳答案

由于错误,whiptail 中的 --infobox 选项在 xterm(即 gnome-terminal)中不起作用。但是,它确实可以在常规控制台上运行。

这似乎是一个长期存在的错误,当它是 reported 时,它已被认为不可重现。

最近在 Launchpad 中再次报道了它。

如果您需要 --infobox 下的工作 xterm ,您可以使用 dialog

关于bash - 如何在whiptail中显示信息框?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13000391/

10-13 03:20