在UNIX中将终端选项卡标题设置为提示名称 [英] Set the terminal tab title as prompt name in unix
本文介绍了在UNIX中将终端选项卡标题设置为提示名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以说,提示如下
run_scripts >
如何将终端标签标题设置为与提示相同
即终端"标签磁贴也应为
run_scripts>
How to set that terminal tab title same as prompt
i.e Terminal tab tile also should be
run_scripts>
因此,当提示更改时,终端标题应动态更新.
So that terminal title should dynamically update when the prompt changes.
推荐答案
许多终端仿真器都可以理解特殊的转义:"\033]0;foo\007"
.
Many terminals emulators are able to understand the special escaping : "\033]0;foo\007"
.
这篇关于在UNIX中将终端选项卡标题设置为提示名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文