What's the output display, is it console, a window in a GUI subsystem, what GUI etc? Lots more details needed before anyone can come close to giving you an answer.