tools: Fix idf.py menuconfig characters in MSYS2
This commit is contained in:
parent
d3ed17acd7
commit
d24086c529
|
@ -1529,6 +1529,11 @@ if __name__ == "__main__":
|
|||
if ("MSYSTEM" in os.environ) and (
|
||||
not os.environ.get("_", "").endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ
|
||||
):
|
||||
|
||||
if 'menuconfig' in sys.argv:
|
||||
# don't use winpty for menuconfig because it will print weird characters
|
||||
main()
|
||||
else:
|
||||
os.environ[WINPTY_VAR] = "1" # the value is of no interest to us
|
||||
# idf.py calls itself with "winpty" and WINPTY global variable set
|
||||
ret = subprocess.call(
|
||||
|
|
Loading…
Reference in a new issue