avatar
a question, thank you!# Unix - 噫吁兮,危乎高哉
w*n
1
I use xterm to telnet to our library service, but after quiting it,
the color of the xterm changes into black foreground and white background,
how I can change it back to my original "black background & white foreground"?
Thanks a lot.
avatar
o*a
2

run: xterm -bg black -fg white
you might want to set an alias for this in your login
script.

【在 w*********n 的大作中提到】
: I use xterm to telnet to our library service, but after quiting it,
: the color of the xterm changes into black foreground and white background,
: how I can change it back to my original "black background & white foreground"?
: Thanks a lot.

avatar
w*n
3
Thanks, but you misunderstand me.
I mean how to change the colors back to my original settings without
opening a new xterm window.
I just wish to change my origianl Console window color back,
not open a new Console/xterm.
thank you anyway.

【在 o**a 的大作中提到】
:
: run: xterm -bg black -fg white
: you might want to set an alias for this in your login
: script.

avatar
l*l
4
(1)
If you use OSF, SCO, AIX, Solaris,
first use
sh
echo \\033\[37\;0m
will change to original set
(2)
If you use Linux, BSD which sh is really bash
execute
bash
echo -ne \\033\[37\;0m
Or you can set any background color and forground color as you like.
BTW, you can modify "reset" to do it, I fix it.


【在 w*********n 的大作中提到】
: Thanks, but you misunderstand me.
: I mean how to change the colors back to my original settings without
: opening a new xterm window.
: I just wish to change my origianl Console window color back,
: not open a new Console/xterm.
: thank you anyway.

avatar
w*n
5

~~~~~~~~~~~~~~~
what's these charactors? Appears vague code for me.
I wonder how these 2 commands can make things work?
'sh' is to set current shell, and 'echo' just display
charactors to some pipe.
I don't see why these 2 command are useful to restore back.
I'll try that, thanks.

【在 l*l 的大作中提到】
: (1)
: If you use OSF, SCO, AIX, Solaris,
: first use
: sh
: echo \\033\[37\;0m
: will change to original set
: (2)
: If you use Linux, BSD which sh is really bash
: execute
: bash

avatar
w*n
6
Thanks for the replies.
I didn't restore it with my previous tries of those commands.
On the other hand, there is a trick in Solaris system,
just use CTL-Button to restore it, very easy then.

【在 w*********n 的大作中提到】
: I use xterm to telnet to our library service, but after quiting it,
: the color of the xterm changes into black foreground and white background,
: how I can change it back to my original "black background & white foreground"?
: Thanks a lot.

avatar
l*l
7
你连接BBS带不带色彩? 如果带的话, 就是这些字符的表示.
记录下传输的字符流, 用 od 分析一下.

【在 w*********n 的大作中提到】
: Thanks for the replies.
: I didn't restore it with my previous tries of those commands.
: On the other hand, there is a trick in Solaris system,
: just use CTL-Button to restore it, very easy then.

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