mercurial颜色扩展的有效颜色是什么? [英] what are the valid colors for mercurial's color extension?

查看:105
本文介绍了mercurial颜色扩展的有效颜色是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mercurial的color 扩展非常好,但是没有列表在该页面上有效颜色是什么.我寻找了一个名为color的python文件,希望能够阅读源代码并在那里查看它,但没有运气.我希望使用灰色或浅灰色作为颜色,但这是无效的.灰色(或灰色)似乎很可能出现在颜色列表中.

Mercurial's color extension is great and all, but there isn't a list on that page of what the valid colors are. I looked for a python file named color, hoping I'd be able to read the source and see it there, but no luck. I was hoping to use grey or light grey for a color but it wasn't valid. Grey (or gray) seems like a pretty likely color to be in a list of colors.

在哪里可以找到color扩展名的有效颜色列表?或者在哪里可以找到color扩展名的来源?

Where can I find a list of valid colors for the color extension? Or where can I find the source for the color extension?

推荐答案

您可以在默认情况下,它识别的颜色是黑色,红色,绿色,黄色,蓝色,洋红色,青色,白色.

By default, the colors it recognises are black, red, green, yellow, blue, magenta, cyan, white.

但是,正如您从源代码中看到的那样,可以定义自定义颜色,但是如何实现将取决于您的终端.在源代码中搜索brightblue.

But, as you'll see from the source, it's possible to define custom colours, but how you do this will depend on your terminal. Search for brightblue in the source.

这篇关于mercurial颜色扩展的有效颜色是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆