对于使用ruby-debug的人来说,你做了什么让它输出为彩色的吗?我现在正在设置wirble来给我的irb上色,但是它不会给漂亮的print上色(我相信它来自ruby-debug而不是irb)
发布于 2011-03-05 07:52:08
ruby-debug rb-trepanning (对于已打补丁的1.9.2)和rbx-trepanning (对于rubinius 1.2.x)的重写支持彩色列表,甚至支持通过CodeRay gem的汇编输出。
请参阅https://github.com/rocky/rb-trepanning/wiki/Terminal-Colors和https://github.com/rocky/rbx-trepanning/wiki/Terminal-Colors
ruby-debug中现在没有任何东西。如果有足够需求,则可以将代码反向移植到ruby-debug。但这将意味着一个新版本的源代码行缓存gem行缓存。
https://stackoverflow.com/questions/5200401
复制相似问题