I would go with the second option. Having a standardized output format will probably come in really handy down the road. |
If by standardised you mean usable with any program then that's what I was trying to explain with my first option.
@Grime
Your examples don't speak to me sorry, I don't know what's meant to be input by the user and what's displayed by the console.
I may not have explained my two possibilities quite clear enough. To make it short and understandable:
Either I recreate a windows-ish console, that can work with any program. This would mean making the console able to interact with any C++ language that may be contained within the program's code.
Or I create a console that's
part of my existing program and which would only be able to deal with the program's functions.
The difference is, in this case displaying things with the console. In the first option, the console could receive any string (or other) to output and would do so automatically. In the second option, the console could not receive any string from the program. Instead a function may display elements (strings, numbers, anything) but it would have to interact directly with the renderer and say "this goes here", "this goes 20 pixels further down" etc.
EDIT: After scratching my head more to find a way to narrow down what I mean : Either I have to replace
std::cout
,
std::cin
,
std::getline
etc. with my own code, or I ignore them and focus on key presses, events, and rendering positions.