rubyworks / ansi

Set of ANSI Code based classes and modules for Ruby

Home Page:https://rubyworks.github.com/ansi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Un-bold, or "normal" code?

wulftone opened this issue · comments

I searched through the API but couldn't figure out how to display an ANSI "normal" weight code... for instance, after bolding, going back to normal. Is this implemented?

I discovered the reset method, which works for white, but you need to re-input your colors after doing that.. looking here I see that the code I need is code 22.

After browsing through the source code, I found out that it has been implemented, here, so I'll consider this closed, but it might be helpful to document this somewhere! It could also be helpful to either change or alias that method to "normal", which is what the ansi codes call it, and what it actually does. I think "Clear" is a little misleading, since it doesn't clear color--it just "normals" the font weight.