How can I write fast colored output to Console?
Posted
by Statement
on Stack Overflow
See other posts from Stack Overflow
or by Statement
Published on 2010-05-02T18:44:49Z
Indexed on
2010/05/02
18:47 UTC
Read the original article
Hit count: 136
Hello world!
I want to learn if there is another (faster) way to output text to the console application window using C# .net than with the simple Write, BackgroundColor and ForegroundColor methods and properties? I learned that each cell has a background color and a foreground color, and I would like to cache/buffer/write faster than using the mentioned methods.
Maybe there is some help using the Out buffer, but I don't know how to encode the colors into the stream, if that is where the color data resides.
This is for a retrostyle textbased game I am wanting to implement where I make use of the standard colors and ascii characters for laying out the game.
Please help :)
© Stack Overflow or respective owner