[Question] Could herbe interpret ansi escape sequences?
Could herbe interpret ansi escape sequences? It would be really useful with some commands like cal which use* ansi escape sequence to highlight current date.
*(at least it seems like it does)
If it's not possible for what ever reason (or would add unnecessary complexity (I like my programs minimal ;) )), supporting multiple text colors would also be awesome (with it's own escape codes like e.x. %c0 %c1, etc.), but if there isn't simple way of doing this, or it's more fit for a patch, I won't mind not having it.
PS: Thank you dudik, herbe is awesome!
I don't really see a reason why it wouldn't be possible. Sadly, a few weeks ago a new semester started and I think that I shouldn't put my hobbies before school. I will try to fix minor bugs if they appear, but I would rather not work on new features/patches. I'm really sorry. I like your idea and it would make a great patch, but I won't be able to work on it in the next few months. Thank you for your input and overall for using herbe. It means a lot to me.
@dudik No problem! I get where you are coming from, I'm trying to learn c so I might come up with something myself, I will see. And good luck with school!
Honestly, don't think this is a good idea. Traditional 8/16/256 color sequences don't represent actual rgb colors. You'll need to maintain your own color-table and index into it. This (obviously) means that your terminal color and herbe colors will be out of sync.
Maybe parsing the true color sequences makes more sense for a GUI program. Though I think that's still unnecessary complexity.
And of course if true color is implemented, there's going to be (I assume) lots of request for parsing the tradition color sequences as well, because not all terminal programs support true color sequences.