window
raw OCR
Defines active text mode window.
Defined in header <conio.h>
Syntax
#include <conio.h>
void window(int left, int top, int right, int bottom);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ |
Remarks
window defines a text window onscreen. If the coordinates are in any way invalid, the call to 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.
| The minimum | size of the text window is one column by one line. |
The default window is full screen, with these coordinates:
80-column mode: 1,1,80,25 40-column mode: 1,1,40,25
Return value
None.
See also
Example
Jflnclude <conio.h>
int main (void)
{
windowdO, 10, 40,11),■
textcolor (BLACK);
textbackground (WHITE) ;
cprintf ("This is a test\r\n");
return 0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/conio.h/window/
· short form /3.1/window/