fix: removed \r+flush to fix putty terminal

master 3.7.2.1
idziubenko 2 years ago
parent 6063626727
commit 3757c216b4

@ -295,8 +295,8 @@ def https_server(client, args, unknown_args, url, clVarsCore, wait_thread):
dispatch_usenew = _args.no_questions
finally:
wait_thread.stop()
sys.stdout.write("\b")
sys.stdout.flush()
# sys.stdout.write("\b")
# sys.stdout.flush()
client.service.clear_method_cache(client.sid, args.method)
method_parser.print_help()
else:
@ -370,16 +370,16 @@ def main(wait_thread):
if not args.method and args.help:
wait_thread.stop()
sys.stdout.write('\r')
sys.stdout.flush()
# sys.stdout.write('\r')
# sys.stdout.flush()
parser.print_help()
return 0
if not args.method:
if unknown_args:
wait_thread.stop()
sys.stdout.write('\r')
sys.stdout.flush()
# sys.stdout.write('\r')
# sys.stdout.flush()
args = parser.parse_args(
list(unpack_single_opts(sys.argv[1:])))

Loading…
Cancel
Save