From 3757c216b4ec78f4d77b17e55669aa59e1723312 Mon Sep 17 00:00:00 2001 From: idziubenko Date: Fri, 28 Jan 2022 12:43:47 +0300 Subject: [PATCH] fix: removed \r+flush to fix putty terminal --- pym/console/application/cl_client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pym/console/application/cl_client.py b/pym/console/application/cl_client.py index 260e4a9..d920e07 100644 --- a/pym/console/application/cl_client.py +++ b/pym/console/application/cl_client.py @@ -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:])))