|
Re: I/O proccessing
You need to print to the screen as you're taking user input? Yikes. That's what you use a GUI for. I've never seen this accomplished with a console. It's probably possible, but I don't know how stable it would be.
My main concern is over what will happen if the user tries to press buttons while you are outputting to the screen. You don't want to echo that data in the output. If there's a way to stall the echo of the user-input at the top of a print wrapper, and then release it after the print wrapper is done, it might be more feasable.
Seems nasty, and obviously OS-dependent. I am hoping someone here can give you a library or piece of code that does this already, but I would be surprised if it's that common. Why not use a GUI?
|