Is there a way to configure PuTTY or other terminal to flash the taskbar on next output to stdout?

冷暖自知 提交于 2020-01-23 05:22:20

问题


I'm specifically looking for a solution for PuTTY but also interested for other terminal emulators, like Gnome Terminal.

My thought is it would be useful if I start a tar zxvf to be able to set a trigger on the terminal emulator, minimize it, and on next output to stdout/stderr I get a notification in the task bar that the command has finished.


回答1:


This works for me:

echo -e "\a"

Then update your PuTTY session to use the Visual Bell, and set "Taskbar/caption indication on bell" to Flashing or Steady.

Then run this command after your tar completes:

tar xvzf file ; echo -e "\a"

Here is a screenshot: Save these settings as the default settings and/or the sessions' settings you have



来源:https://stackoverflow.com/questions/6878925/is-there-a-way-to-configure-putty-or-other-terminal-to-flash-the-taskbar-on-next

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!