如何使rxvt使用gnome-terminal的样式?

系统字体配置、中文显示和输入法问题
回复
SHmech
帖子: 14
注册时间: 2009-03-17 20:38
送出感谢: 0
接收感谢: 0

如何使rxvt使用gnome-terminal的样式?

#1

帖子 SHmech » 2011-04-18 0:05

10.04的gnome-terminal配置不错,淡紫色,半透明的背景。如何让urxvt能达到同样的效果?gnome-terminal似乎没有一个配置文件,不然可以直接把这些值拷过来用。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

Re: 如何使rxvt使用gnome-terminal的样式?

#2

帖子 eexpress » 2011-04-18 9:44

那些颜色,最多256色,最少16色。都容易hack的。

下面脚本,可对比看颜色。

代码: 全选

● cat ./ansi/ansi.color.256.pl 
#!/usr/bin/perl
# Author: Todd Larason <jtl@molehill.org>
# modify: eexpress
# display the colors

# first the system ones:
print "System colors: 0-15\n";
for ($color = 0; $color < 16; $color++) {
    printf "\x1b[48;5;${color}m%3s",${color};
}
print "\x1b[0m\n";
print "\n";

# now the color cube
print "Color cube, 6x6x6: 16-231\n";
for ($green = 0; $green < 6; $green++) {
    for ($red = 0; $red < 3; $red++) {
	for ($blue = 0; $blue < 6; $blue++) {
	    $color = 16 + ($red * 36) + ($green * 6) + $blue;
	    printf "\x1b[48;5;${color}m %3s",${color};
	}
	print "\x1b[0m ";
    }
    print "\n";
}
print "\n";
for ($green = 0; $green < 6; $green++) {
    for ($red = 3; $red < 6; $red++) {
	for ($blue = 0; $blue < 6; $blue++) {
	    $color = 16 + ($red * 36) + ($green * 6) + $blue;
	    printf "\x1b[48;5;${color}m %3s",${color};
	}
	print "\x1b[0m ";
    }
    print "\n";
}
print "\n";


# now the grayscale ramp
print "Grayscale ramp: 232-255\n";
for ($color = 232; $color < 256; $color++) {
    printf "\x1b[48;5;${color}m %03s",${color};
    if(!(($color-231)%6)){print "\x1b[0m\n";}
}
print "\x1b[0m\n";
● 鸣学
SHmech
帖子: 14
注册时间: 2009-03-17 20:38
送出感谢: 0
接收感谢: 0

Re: 如何使rxvt使用gnome-terminal的样式?

#3

帖子 SHmech » 2011-04-18 10:15

多谢了
eexpress 写了:那些颜色,最多256色,最少16色。都容易hack的。

下面脚本,可对比看颜色。

代码: 全选

● cat ./ansi/ansi.color.256.pl 
#!/usr/bin/perl
# Author: Todd Larason <jtl@molehill.org>
# modify: eexpress
# display the colors

# first the system ones:
print "System colors: 0-15\n";
for ($color = 0; $color < 16; $color++) {
    printf "\x1b[48;5;${color}m%3s",${color};
}
print "\x1b[0m\n";
print "\n";

# now the color cube
print "Color cube, 6x6x6: 16-231\n";
for ($green = 0; $green < 6; $green++) {
    for ($red = 0; $red < 3; $red++) {
	for ($blue = 0; $blue < 6; $blue++) {
	    $color = 16 + ($red * 36) + ($green * 6) + $blue;
	    printf "\x1b[48;5;${color}m %3s",${color};
	}
	print "\x1b[0m ";
    }
    print "\n";
}
print "\n";
for ($green = 0; $green < 6; $green++) {
    for ($red = 3; $red < 6; $red++) {
	for ($blue = 0; $blue < 6; $blue++) {
	    $color = 16 + ($red * 36) + ($green * 6) + $blue;
	    printf "\x1b[48;5;${color}m %3s",${color};
	}
	print "\x1b[0m ";
    }
    print "\n";
}
print "\n";


# now the grayscale ramp
print "Grayscale ramp: 232-255\n";
for ($color = 232; $color < 256; $color++) {
    printf "\x1b[48;5;${color}m %03s",${color};
    if(!(($color-231)%6)){print "\x1b[0m\n";}
}
print "\x1b[0m\n";
回复

回到 “字体美化和中文支持”