Redian新闻
>
unix command to give terminal a name on top bar?
avatar
unix command to give terminal a name on top bar?# Unix - 噫吁兮,危乎高哉
ga
1
In the dos command window, if you type
title window1
then when you minimize command window, you'll see window1 on
the
minimized window, you'll be able to differentiate different
command window without maxmize them.
Does unix has similar command? I know if you use
xterm -title window1
you'll be able to do it. but If I already open the terminal
and want to add a title to it, how could I do?
Thanks.
avatar
z*g
2

use /usr/ucb/echo -n "^[]0;my_title^G"
Note: the ^[ is Esc (first type ctrl-v then Esc to input it)
the ^G is ctrl-g (first type ctrl-v then ctrl-g )
You can write a script called title to do it every time
you wanna change the title
/zorg

【在 ga 的大作中提到】
: In the dos command window, if you type
: title window1
: then when you minimize command window, you'll see window1 on
: the
: minimized window, you'll be able to differentiate different
: command window without maxmize them.
: Does unix has similar command? I know if you use
: xterm -title window1
: you'll be able to do it. but If I already open the terminal
: and want to add a title to it, how could I do?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。