2 * Demonstrates some wrapping behaviors of the new Windows 10 console.
11 int main(int argc, char *argv[]) {
13 startChildProcess(L"CHILD");
17 setWindowPos(0, 0, 1, 1);
18 setBufferSize(40, 20);
19 setWindowPos(0, 0, 40, 20);
23 repeatChar(39, 'A'); repeatChar(1, ' ');
24 repeatChar(39, 'B'); repeatChar(1, ' ');
27 repeatChar(39, 'C'); repeatChar(1, ' ');
28 repeatChar(39, 'D'); repeatChar(1, ' ');
35 repeatChar(39, 'G'); repeatChar(1, ' ');
36 repeatChar(39, 'H'); repeatChar(1, ' ');
41 setChar(39, 0, '*', 0x24);
42 setChar(39, 1, '*', 0x24);
44 setChar(39, 3, ' ', 0x24);
45 setChar(39, 4, ' ', 0x24);
47 setChar(38, 6, ' ', 0x24);
48 setChar(38, 7, ' ', 0x24);
51 setWindowPos(0, 0, 35, 20);
52 setBufferSize(35, 20);
55 printf("Sleeping forever...\n");
56 while(true) { Sleep(1000); }