I want to implement some color codes in my little door game. I tried using ANSI codes but they don't show up when running from Synchronet (I am using IO redirection and telnetting in using SyncTerm).
So now I want to try using the Control-A codes for color.
First off, I don't know if I am entering them correctly. For example, I defined red like this:
const std::string red = "^AR";
so, for example, when I display something I would do:
cout << red << "this is a test" << endl;
but I'm not seeing red in the output.
How do I get color to be displayed when running the game as a door in Synchronet using IO redirection?
Re: How do I implement ^A codes when Door is using IO redicrection?
By: Xucaen to All on Wed Nov 25 2015 09:46 pm
I want to implement some color codes in my little door game. I tried
using ANSI codes but they don't show up when running from Synchronet (I
am using IO redirection and telnetting in using SyncTerm).
Then you weren't sending proper ANSI escape sequences.
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 212:55:37 |
Calls: | 14,143 |
Calls today: | 1 |
Files: | 295 |
Messages: | 551,114 |