Gab*_*les 4 sound command-line gnome-terminal terminator
在我的 PC 上,gnome-terminalUbuntu 18.04 中,当我运行以下命令时,铃声播放得很好:
echo -e "\a"
Run Code Online (Sandbox Code Playgroud)
然而,在我现在默认使用的terminator终端 ( ) 中,因为它具有漂亮的屏幕窗口功能,它不会播放声音!为什么不?sudo apt install terminator
不重复:这不是其他问题的重复,例如这个问题(Shell 脚本中的蜂鸣声不起作用?),因为我专门询问有关terminator终端的问题。例如,我的铃声在其他终端上工作正常,但在terminator. 这是一个新的、独特的问题。
事实证明,您只需启用该设置即可!(默认情况下它被禁用)。
右键单击屏幕terminator--> 首选项 --> 单击顶部的“配置文件”选项卡 --> 确保选择“常规”子选项卡 --> 选中“终端”下的“蜂鸣声”框右下角的响铃”部分:
就是这样!现在可以完美运行——与 中相同gnome-terminal,甚至可以通过 ssh 进行:
echo -e "\a"
Run Code Online (Sandbox Code Playgroud)