restore control to console from GLUT window

How can I restore control to console from GLUT window?
How can I run my other functions after displaying some output on glutwindow?