From d4bc98c38334225983e42207268a858d954ab85a Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Mon, 5 Jun 2023 11:46:01 -0700 Subject: [PATCH] revert to conhost method --- invokeai/frontend/install/widgets.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/invokeai/frontend/install/widgets.py b/invokeai/frontend/install/widgets.py index 88ad5a4edc..1180f1f811 100644 --- a/invokeai/frontend/install/widgets.py +++ b/invokeai/frontend/install/widgets.py @@ -19,8 +19,6 @@ from curses import BUTTON2_CLICKED,BUTTON3_CLICKED # ------------------------------------- def set_terminal_size(columns: int, lines: int): ts = get_terminal_size() - if ts.columns >= columns and ts.lines >= lines: - return width = max(columns,ts.columns) height = max(lines,ts.lines) @@ -29,12 +27,11 @@ def set_terminal_size(columns: int, lines: int): # The new Windows Terminal doesn't resize, so we relaunch in a CMD window. # Would prefer to use execvpe() here, but somehow it is not working properly # in the Windows 10 environment. - if 'WT_SESSION' in os.environ and 'IA_RELAUNCHED' not in os.environ: - args=['wt','-M'] + if 'IA_RELAUNCHED' not in os.environ: + args=['conhost'] args.extend(sys.argv) - os.environ.pop('WT_SESSION') os.environ['IA_RELAUNCHED'] = 'True' - os.execvp('wt',args) + os.execvp('conhost',args) else: _set_terminal_size_powershell(width,height) elif OS in ["Darwin", "Linux"]: