aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/winpty/misc/Win10WrapTest2.cc
blob: 50615fc8c792945eac4f0f911af6fe8a98b398ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <windows.h>

#include "TestUtil.cc"

int main(int argc, char *argv[]) {
    if (argc == 1) {
        startChildProcess(L"CHILD");
        return 0;
    }

    const int WIDTH = 25;

    setWindowPos(0, 0, 1, 1);
    setBufferSize(WIDTH, 40);
    setWindowPos(0, 0, WIDTH, 20);

    system("cls");

    for (int i = 0; i < 100; ++i) {
        printf("FOO(%d)\n", i);
    }

    repeatChar(5, '\n');
    repeatChar(WIDTH * 5, '.');
    repeatChar(10, '\n');
    setWindowPos(0, 20, WIDTH, 20);
    writeBox(0, 5, 1, 10, '|');

    Sleep(120000);
}