From e3406a9f866e4df564641acabcc3a4d5cb3c6378 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 11 Dec 2022 22:46:21 +0000 Subject: [PATCH] dont cls by default --- bin/up2k.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/up2k.py b/bin/up2k.py index 766a3855..6e09ad13 100755 --- a/bin/up2k.py +++ b/bin/up2k.py @@ -986,6 +986,7 @@ source file/folder selection uses rsync syntax, meaning that: ap.add_argument("-a", metavar="PASSWORD", help="password") ap.add_argument("-s", action="store_true", help="file-search (disables upload)") ap.add_argument("--ok", action="store_true", help="continue even if some local files are inaccessible") + ap.add_argument("--cls", action="store_true", help="clear screen before start") ap = app.add_argument_group("folder sync") ap.add_argument("--dl", action="store_true", help="delete local files after uploading") @@ -1026,8 +1027,8 @@ source file/folder selection uses rsync syntax, meaning that: if "://" not in ar.url: ar.url = "http://" + ar.url - if VT100: - print(b"\x1b\x5b\x48\x1b\x5b\x32\x4a\x1b\x5b\x33\x4a", end="") + if ar.cls: + print("\x1b\x5b\x48\x1b\x5b\x32\x4a\x1b\x5b\x33\x4a", end="") Ctl(ar)