LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1074|回复: 13

bash 修改输入命令的颜色?

[复制链接]
发表于 2007-6-5 22:00:24 | 显示全部楼层 |阅读模式
看到别人输入的命令可以改颜色。。。
# ls / -R
ls / -R 的颜色。

而且并不是所有的颜色都变,只是输入命令的颜色可以改变。
 楼主| 发表于 2007-6-6 07:30:41 | 显示全部楼层
??????
回复 支持 反对

使用道具 举报

发表于 2007-6-6 14:48:41 | 显示全部楼层
depend on ur  terminal
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-6 19:32:26 | 显示全部楼层
How to do it , please!
回复 支持 反对

使用道具 举报

发表于 2007-6-6 20:14:11 | 显示全部楼层
Actually I don't know what u want to do, :-)
Can u give me an example?
I just made a program on shell to make a colorized menu.
This is just for fun....
I read book, and it covered much knowledge, such as ASCII code, the support of ur terminal, and so on.
I mean that sometimes  u can see some colorized command line in certain terminals  but fail in ur computer, u should make sure ur terminal support the commands.
anyway, maybe u just want to modify .bashrc, and make fantastic shell, haha. u can try....and u can gain a good experience. Good luck
Sorry for typing English as I don't have Chinese input software in this poor computer.
:-(
回复 支持 反对

使用道具 举报

发表于 2007-6-6 21:01:35 | 显示全部楼层
我倒是想知道5楼的,
你的电脑有多破,
连个中文输入也没有。
不是说你的英文不好,
只是,
要顾及大众哦。
回复 支持 反对

使用道具 举报

发表于 2007-6-6 23:47:55 | 显示全部楼层
Post by moonbug1984
我倒是想知道5楼的,
你的电脑有多破,
连个中文输入也没有。
不是说你的英文不好,
只是,
要顾及大众哦。



同意,我连什么是英文都不知道,你写的是什么我还是查了字典才知道你写的是英文呢,我还以为你和我一样使用的是拼音呢,可是按拼音读了半天也读不懂,老婆说那时英文,我才恍然大悟!!
回复 支持 反对

使用道具 举报

发表于 2007-6-6 23:59:41 | 显示全部楼层
那天看到有人说 grep --color=tty 很好用
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-7 11:34:07 | 显示全部楼层
我是说bash shell ,可以修改stdin的颜色.
e.x:
[root@local~]# blah blah.....

blah的部分可以添加颜色.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-7 19:22:40 | 显示全部楼层
没人知道吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表