mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-08 17:18:10 +08:00
check for Windows color support each time
This commit is contained in:
parent
6a6dcd4f56
commit
b2d158699e
1 changed files with 5 additions and 3 deletions
|
@ -783,9 +783,6 @@ int main(int argc, char *argv[]) {
|
|||
#if defined(__linux__) || defined(__APPLE__)
|
||||
session.supports_colors = true;
|
||||
session.emoji_mode = EMO_EMOJI;
|
||||
#elif defined(_WIN32)
|
||||
session.supports_colors = DetectWindowsAnsiSupport();
|
||||
session.emoji_mode = EMO_ALTTEXT;
|
||||
#endif
|
||||
}
|
||||
for (int i = 1; i < argc; i++) {
|
||||
|
@ -998,6 +995,11 @@ int main(int argc, char *argv[]) {
|
|||
session.supports_colors = false;
|
||||
session.emoji_mode = EMO_ALTTEXT;
|
||||
}
|
||||
|
||||
#if defined(_WIN32) //Color support on Windows has to be enabled each time and can fail, override prefs
|
||||
session.supports_colors = DetectWindowsAnsiSupport();
|
||||
session.emoji_mode = EMO_ALTTEXT;
|
||||
#endif
|
||||
|
||||
// Let's take a baudrate ok for real UART, USB-CDC & BT don't use that info anyway
|
||||
if (speed == 0)
|
||||
|
|
Loading…
Reference in a new issue