MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / move

Function move

src/indicators.hpp:1305–1318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1303#ifdef _MSC_VER
1304
1305static inline void move(int x, int y) {
1306 auto hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
1307 if (!hStdout)
1308 return;
1309
1310 CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
1311 GetConsoleScreenBufferInfo(hStdout, &csbiInfo);
1312
1313 COORD cursor;
1314
1315 cursor.X = csbiInfo.dwCursorPosition.X + x;
1316 cursor.Y = csbiInfo.dwCursorPosition.Y + y;
1317 SetConsoleCursorPosition(hStdout, cursor);
1318}
1319
1320static inline void move_up(int lines) { move(0, -lines); }
1321static inline void move_down(int lines) { move(0, -lines); }

Callers 15

toml.hppFile · 0.85
refFunction · 0.85
insertFunction · 0.85
emplace_hintFunction · 0.85
parse_errorFunction · 0.85
parse_resultMethod · 0.85
parse_resultClass · 0.85
strMethod · 0.85
concatenateFunction · 0.85
advanceMethod · 0.85
parse_table_headerMethod · 0.85
parse_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected