在屏幕外的 konsole 终端窗口中运行一个 bash shell,如果我输入,则 TERM 设置为 konsole-256color:
echo -n $'\a' 或
echo -n $'\eg' 或
./ringbell 其中 ./ringbell 的内容
#!/bin/bash echo -n $'\eg';echo -n $'\a'
它们都会导致配置的音频铃声响起。如果我进入一个屏幕会话(我的 .screenrc 也将 term 设置为 konsole-256color),只有上述 3 个命令中的第二个(echo -n $'\eg')会导致听到音频铃声。我必须修改脚本还是屏幕有问题?
我手头的ubuntu版screen包是4.1.0~20120320gitdb59704-9。