提交 00be3460 编写于 作者: B Brian Anderson

libstd: Add 'xterm-256-color' to list of color-enabled terminals

上级 471b4d6e
......@@ -63,7 +63,7 @@ fn reset(writer: io::buf_writer) {
Returns true if the terminal supports color
*/
fn color_supported() -> bool {
let supported_terms = ["xterm-color", "xterm", "screen-bce"];
let supported_terms = ["xterm-color", "xterm", "screen-bce", "xterm-256color"];
ret alt generic_os::getenv("TERM") {
option::some(env) {
for term: str in supported_terms {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册