mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Merge pull request #1281 from Gator96100/master
check for Windows color support each time
This commit is contained in:
commit
395ce7da79
1 changed files with 5 additions and 3 deletions
|
@ -783,9 +783,6 @@ int main(int argc, char *argv[]) {
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__APPLE__)
|
||||||
session.supports_colors = true;
|
session.supports_colors = true;
|
||||||
session.emoji_mode = EMO_EMOJI;
|
session.emoji_mode = EMO_EMOJI;
|
||||||
#elif defined(_WIN32)
|
|
||||||
session.supports_colors = DetectWindowsAnsiSupport();
|
|
||||||
session.emoji_mode = EMO_ALTTEXT;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
|
@ -999,6 +996,11 @@ int main(int argc, char *argv[]) {
|
||||||
session.emoji_mode = EMO_ALTTEXT;
|
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
|
// Let's take a baudrate ok for real UART, USB-CDC & BT don't use that info anyway
|
||||||
if (speed == 0)
|
if (speed == 0)
|
||||||
speed = USART_BAUD_RATE;
|
speed = USART_BAUD_RATE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue