如何调整撬片颜色
编辑: 褪色的灰色仅是 0.9.7.3 及之前版本的问题。此后它已更改为深灰色。
Pry 具有很好的着色功能,但是创建或更改对象时返回的值是我几乎看不到的褪色灰色。
u = User.new
=>#<User... <<<<<< This is what is barely readable.
我尝试弄乱 .pryrc 中的值,但无法更改此颜色或任何其他颜色。
Edit: The faded gray is only an issue with version 0.9.7.3 and before. It has since been changed to a darker gray.
Pry has nice colorizing, but the value returned when an object is created or changed is a faded gray that I can barely see.
u = User.new
=>#<User... <<<<<< This is what is barely readable.
I tried messing with values in .pryrc, but couldn't get this, or any other color for that matter, to change.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Pry 使用 CodeRay 进行着色,因此您可以将以下内容放入 .pryrc 文件中:
您可以在此处看到所有可以自定义的值(不确定您提到的到底是哪一个,但应该不难追踪) :
https://github.com/rubychan/coderay/blob /master/lib/coderay/encoders/terminal.rb
Pry uses CodeRay for coloring, so you can put the following in your .pryrc file:
You can see here all values that can be customized (not sure which one exactly is the one you mentioned, but shouldn't be hard to track down):
https://github.com/rubychan/coderay/blob/master/lib/coderay/encoders/terminal.rb