改变的xterm的标题从bash脚本 [英] change title of xterm from a bash script

查看:617
本文介绍了改变的xterm的标题从bash脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个脚本,做了很长的构建。它采用了几小时此脚本来完成,虽然构建是在去那里是没有办法,我知道有多少脚本运行。
对于我以为从脚本改变的xterm的名称,以反映下标。

I have a script which does a long build. It takes like hours for this script to complete, and while the build is going on there is no way for me to know how much the script has run. For that I thought of changing the name of the xterm from the script to reflect the subscript.

所以,问题是我怎么改变的xterm标题从脚本?

So, the question is how do I change the xterm title from script ?

我尝试添加的台词:回声-e'\\ 033k'$ mytitle'\\ 033 \\'这是我从其他岗位了,但它不工作

I tried adding lines like: echo -e '\033k'$mytitle'\033\' which I got from some other post, but it doesnt work.

感谢您的帮助!

推荐答案

设置xterm的标题正确的逃生似乎 \\ 033] 0 \\ 007 ,见 http://tldp.org/HOWTO /Xterm-Title-4.html 小费,和的 http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss3.1 的转义序列定义。

The correct escape for setting xterm title seem to be \033]0 and \007, see http://tldp.org/HOWTO/Xterm-Title-4.html for tips, and http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss3.1 for the escape sequence definition.

这篇关于改变的xterm的标题从bash脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆