| 120 | } |
| 121 | |
| 122 | void SetConsoleCursorPos(int x, int y) |
| 123 | { |
| 124 | #if !defined(_MSC_VER) |
| 125 | nullcThrowError("SetConsoleCursorPos: supported only under Windows"); |
| 126 | #else |
| 127 | if(x < 0 || y < 0) |
| 128 | { |
| 129 | nullcThrowError("SetConsoleCursorPos: Negative values are not allowed"); |
| 130 | return; |
| 131 | } |
| 132 | COORD coords; |
| 133 | coords.X = (short)x; |
| 134 | coords.Y = (short)y; |
| 135 | HANDLE conStdOut = GetStdHandle(STD_OUTPUT_HANDLE); |
| 136 | SetConsoleCursorPosition(conStdOut, coords); |
| 137 | #endif |
| 138 | } |
| 139 | |
| 140 | void GetKeyboardState(NULLCArray arr) |
| 141 | { |
nothing calls this directly
no test coverage detected