We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed4b19e commit f9a07b3Copy full SHA for f9a07b3
1 file changed
main.cpp
@@ -105,6 +105,7 @@ std::string version = []() {
105
#endif
106
}();
107
thread_local std::string currentParentExe = ""; // to store the name of our own parent process for error hints
108
+bool virtualTerminalEnabled = false; // cached result of virtual terminal check to avoid repeated function calls
109
110
std::string WideToString(const std::wstring& wstr);
111
@@ -2032,7 +2033,7 @@ ProcInfos findMyProc(const char *procname, HANDLE hSnapshot) {
2032
2033
2034
int main(int argc, char* argv[]) {
2035
SetConsoleOutputCP(CP_UTF8);
- bool virtualTerminalEnabled = IsVirtualTerminalModeEnabled();
2036
+ virtualTerminalEnabled = IsVirtualTerminalModeEnabled();
2037
for (int i = 0; i < argc; ++i) {
2038
std::string arg = argv[i];
2039
0 commit comments