ANSI颜色转义序列列表

编程入门 行业动态 更新时间:2024-10-13 22:25:11
本文介绍了ANSI颜色转义序列列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在大多数终端上(像往常一样,Windows的cmd.exe不包含在most中)可以使用 \033 ANSI escape

On most terminals (like always, Windows' cmd.exe isn't included in "most") it is possible to colorize output using the \033 ANSI escape sequence.

现在我正在寻找所有支持的颜色和选项的列表(如明亮和闪烁)。

Now I'm looking for a list of all supported colors and options (like bright and blinking).

由于支持它们的终端之间可能有一些差异:我主要对与xterm兼容终端支持的序列感兴趣。

As there are probably some differences between the terminals supporting them: I'm mainly interested in those sequences supported by xterm-compatible terminals.

推荐答案

此页有一个很好的总结:

This page has a great summary:

ANSI Escape顺序

更多推荐

ANSI颜色转义序列列表

本文发布于:2023-10-08 15:05:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1472980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:序列   颜色   列表   ANSI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!