From 40835339165a408c0dabc417fb5dec255964de4b Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 29 Jun 2022 22:41:51 +0200 Subject: [PATCH] vt100 listing: reset color at eof --- copyparty/httpcli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 36e5a327..7ded17ee 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2218,7 +2218,8 @@ class HttpCli(object): ret = json.dumps(ls) mime = "application/json" - self.reply(ret.encode("utf-8", "replace") + b"\n", mime=mime) + ret += "\n\033[0m" if arg == "v" else "\n" + self.reply(ret.encode("utf-8", "replace"), mime=mime) return True def tx_browser(self) -> bool: