511
个编辑
更改
跳到导航
跳到搜索
小
ANSI转义序列
,→颜色
! [[mIRC]]
! [[xterm]]
! {{tsl|en|X11 color names|X11颜色名称|X}}<ref group="nb">以上颜色名称来自X11 rgb.txt颜色数据库,用“light”作为明亮颜色的前缀。</ref>
! [[Ubuntu]]<ref group="nb">用于虚拟终端,来自/etc/vtrgb。</ref>
|-
=== 24位 ===
随着16位到24位颜色的“真彩色”显卡的普及,Xterm<ref name="xtc">{{cite web |url=http://invisible-island.net/xterm/ctlseqs/ctlseqs.html |title=XTerm Control Sequences |work=invisible-island.net |date=2014-01-13 |access-date=2014-04-13}}</ref>、KDE的[[Konsole]]<ref>{{cite web |url=https://quickgit.kde.org/?p=konsole.git&a=blob&f=tests%2Fcolor-spaces.pl |title=color-spaces.pl (a copy of 256colors2.pl from xterm dated 1999-07-11) |publisher=KDE |date=2006-12-06}}</ref>,以及所有基于libvte的终端<ref>{{cite web |url=https://bugzilla.gnome.org/show_bug.cgi?id=704449 |title=libvte's bug report and patches |publisher=GNOME Bugzilla |date=2014-04-04 |access-date=2016-06-05}}</ref>(包括{{tsl|en|GNOME Terminal|GNOME终端}})支持了ISO(包括GNOME终端)支持了ISO-8613-3的24位前景色和背景色设置。<ref name="moreColors">{{cite web |url=https://cgit.kde.org/konsole.git/tree/doc/user/README.moreColors |title=README.moreColors |publisher=KDE |date=2010-04-22}}</ref>
<code>ESC[ … 38;2;<r>;<g>;<b> … m</code>选择RGB前景色
<code>ESC[ … 48;2;<r>;<g>;<b> … m</code>选择RGB背景色