Thread: I/O proccessing
View Single Post
Old Mar 24th, 2008, 9:51 AM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,888
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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?
Sane is online now   Reply With Quote