by Merk » Thu May 04, 2006 5:03 am
I never found a way, when I was messing with colors before. A section starting at around line 240 in hemisc.c (the Hugo source code) shows where it handles format codes.
It would probably be possible to write your own front-end, but I don't know how slow it would be. Basically, you'd call a functon like MyPrint("whatever"), which converts "whatever" to an array and then processes it a character at a time. You could look for your own formatting codes there, and just "print" (with a semicolon after each character) anything that isn't your own code. It probably wouldn't even be a very difficult routine to write.
I never found a way, when I was messing with colors before. A section starting at around line 240 in hemisc.c (the Hugo source code) shows where it handles format codes.
It would probably be possible to write your own front-end, but I don't know how slow it would be. Basically, you'd call a functon like MyPrint("whatever"), which converts "whatever" to an array and then processes it a character at a time. You could look for your own formatting codes there, and just "print" (with a semicolon after each character) anything that isn't your own code. It probably wouldn't even be a very difficult routine to write.