User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:window

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

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/window.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz