如何更改运行XTERM的默认颜色?
当您启动Xterm时,其默认颜色由.xdefaults或-fg和-bg选项确定。这些是此特定Xterm流程的默认值。如果您使用ANSI序列更改颜色,则在发送ANSI重置序列时,您会回到其启动的颜色。
我想更改的是此特定Xterm流程的默认值。实际上,我想用新的-fg和-bg选项重新执行Xterm命令。
是否可以选择重置默认颜色,而不是当前的颜色?
When you start an xterm, its default colors are determined by .Xdefaults OR --fg and --bg options. Those are the defaults for this particular xterm process. If you then change colors with ansi sequences, when you send the ansi reset sequence, you get back to the colors it started up with.
What I want to change is the defaults for this particular xterm process. I want to, in effect, re-exec the xterm command with a new set of --fg and --bg options.
Is there an option to reset the default colors, not the current colors?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
动态颜色功能执行此操作(在正常的逃生序列中未获得“重置”,使用“ ANSI” ESCAPES):
OSC
11
)OSC
10
)The dynamic colors feature does that (does not get "reset" in the normal escape sequences, which use "ANSI" escapes):
OSC
11
)OSC
10
)