Skip to content

Commit 3320deb

Browse files
ZeeTerminal v0.4.3 src
1 parent 36f8b4d commit 3320deb

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

Definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
// ZeeTerminal Source Code Version
4-
constexpr const char* ZT_VERSION = "0.4.2";
4+
constexpr const char* ZT_VERSION = "0.4.3";
55

66
// Array size for all argument arrays
77
constexpr int nArgArraySize = 128;

ZeeTerminal.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -454,16 +454,10 @@ void ClearKeyboardBuffer() {
454454

455455
// Function to set console cursor position
456456
inline void SetCursorPosition(int x, int y) {
457-
458-
if (!bAnsiVTSequences) {
459-
COORD CursorPos{};
460-
CursorPos.X = x;
461-
CursorPos.Y = y;
462-
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), CursorPos);
463-
}
464-
else {
465-
std::cout << "\033[" << y + 1 << ";" << x + 1 << "H";
466-
}
457+
COORD CursorPos{};
458+
CursorPos.X = x;
459+
CursorPos.Y = y;
460+
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), CursorPos);
467461

468462
return;
469463
}

0 commit comments

Comments
 (0)