Debian Codegraph @

deps/winpty/misc/Win10WrapTest2.cc

raw
1 #include <windows.h>
2
3 #include "TestUtil.cc"
4
5 int main(int argc, char *argv[]) {
6 if (argc == 1) {
7 startChildProcess(L"CHILD");
8 return 0;
9 }
10
11 const int WIDTH = 25;
12
13 setWindowPos(0, 0, 1, 1);
14 setBufferSize(WIDTH, 40);
15 setWindowPos(0, 0, WIDTH, 20);
16
17 system("cls");
18
19 for (int i = 0; i < 100; ++i) {
20 printf("FOO(%d)\n", i);
21 }
22
23 repeatChar(5, '\n');
24 repeatChar(WIDTH * 5, '.');
25 repeatChar(10, '\n');
26 setWindowPos(0, 20, WIDTH, 20);
27 writeBox(0, 5, 1, 10, '|');
28
29 Sleep(120000);
30 }