Table of Contents

window

void window(int left, int top, int right, int bottom);

description of window

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;
 }

output of window example

example output of window in cmd