Why would you mix console input/output and graphical input/output in the same program? That's annoying.

The answer to your question is relatively simple. How do you normally get the user's input...