Console text

Started by
1 comment, last by Charleh 20 years, 1 month ago
Whats the best way of storing console messages and such, I want to use a Quake/HL style console but I''m not sure the best way of storing the data - would a temporary file using fstreams be a good idea?
Advertisement
A temporary file is probably not the best way to do that. My first thought would be a std::deque of std::string objects. Or if you have formatting information, a deque of structs containing the formatting information and the strings.
Well I browsed the Quake src and it turns out that they just use a char to hold all the console information. So thats what I''ve done, works fine for what I need

This topic is closed to new replies.

Advertisement