Defines the active text mode window.
window defines a text window on the screen. If the coordinates are invalid, the call window is ignored. left and top are the screen coordinates of the upper left corner of the window. right, and bottom are the screen coordinates of the lower right corner of the window.
#include <conio.h> int main( void ) { clrscr(); window(20,10,42,42); textcolor(3); textbackground(6); cprintf("window at 20,10,42,42\n"); return 0; }