由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - a question, thank you!
相关主题
怎么write CD再unix下面Re: for cluster, which is better operating system?
xtermAnyone give some opinion about AIX
where is gcc?Solaris Administration问题
Job control question???请各位补充一下现有的操作系统
AIX/ksh/xterm怎么设置可以在程序退出后恢复原来的屏How to get process info on AIX?
[公告] Unix 板的投票结果xterm显示不了颜色
HELP:scorllbar on xterm windowHow to set the titile of the terminal?
在FreeBSD下使用中文的一点心得AIX,Solaris, HP-Unix,Linux及Windows的优缺点
相关话题的讨论汇总
话题: question话题: xterm话题: foreground话题: background话题: use
进入Unix版参与讨论
1 (共1页)
w*********n
发帖数: 84
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.
o**a
发帖数: 86
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.

w*********n
发帖数: 84
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.

l*l
发帖数: 225
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.

w*********n
发帖数: 84
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

w*********n
发帖数: 84
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.

l*l
发帖数: 225
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.

1 (共1页)
进入Unix版参与讨论
相关主题
AIX,Solaris, HP-Unix,Linux及Windows的优缺点AIX/ksh/xterm怎么设置可以在程序退出后恢复原来的屏
如何让UNIX的机器和WINDOWS XP的机器之间实现共享?[公告] Unix 板的投票结果
粗浅一问: UNIX Security modelHELP:scorllbar on xterm window
unix 菜鸟问:在FreeBSD下使用中文的一点心得
怎么write CD再unix下面Re: for cluster, which is better operating system?
xtermAnyone give some opinion about AIX
where is gcc?Solaris Administration问题
Job control question???请各位补充一下现有的操作系统
相关话题的讨论汇总
话题: question话题: xterm话题: foreground话题: background话题: use