ansicon icon indicating copy to clipboard operation
ansicon copied to clipboard

Forwarded named pipes out of ansicon

Open rustyscottweber opened this issue 11 years ago • 1 comments

This is more a series of questions rather than a bug. A very involved question.

  1. AnsiCON will interpret all of the ansi escapes from a process being ran by ansicon but will ansicon forward those ansi escape sequences when forwarding it's output, like stdout, to another process?
  2. If the last question is yes.. Are standard color changes like this void SetColor(Color c){ if(hCon == NULL) hCon = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hCon, c); } converted into ansi sequences for programs being executed under ansicon?

rustyscottweber avatar Apr 10 '14 19:04 rustyscottweber

  1. Yes. A pipe is not a console, so ANSICON will leave it alone.
  2. No. Programs that write directly to the console should still work as usual; redirecting them will not generate escape sequences to preserve color changes (assuming the program even changes color if it detects it's redirected). Interesting idea, though...

adoxa avatar Apr 11 '14 13:04 adoxa