From 3e8f48ad32938ce7f66be93f8f878b2401520aa7 Mon Sep 17 00:00:00 2001 From: Andrew Naylor Date: Mon, 21 Sep 2015 00:47:16 +0100 Subject: [PATCH] Ensure the clearLine method works properly --- mas-cli/AppStore/PurchaseDownloadObserver.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mas-cli/AppStore/PurchaseDownloadObserver.swift b/mas-cli/AppStore/PurchaseDownloadObserver.swift index b6e69ab..5f21333 100644 --- a/mas-cli/AppStore/PurchaseDownloadObserver.swift +++ b/mas-cli/AppStore/PurchaseDownloadObserver.swift @@ -89,7 +89,7 @@ func clearLine() { guard isatty(fileno(stdout)) != 0 else { return } - print("\(csi)2K\(csi)0G") + print("\(csi)2K\(csi)0G", terminator: "") fflush(stdout) }