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

Loading…
Cancel
Save