* guix/scripts/lint.scm (run-checkers): at the "checking" line, make sure to 
delete the old line's text before overwriting it (with a possibly shorter text).
---
 guix/scripts/lint.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm
index 27b9e15..d2fed67 100644
--- a/guix/scripts/lint.scm
+++ b/guix/scripts/lint.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2014, 2015 Eric Bavier <[email protected]>
 ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <[email protected]>
 ;;; Copyright © 2015, 2016 Mathieu Lirzin <[email protected]>
+;;; Copyright © 2016 Danny Milosavljevic <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -799,11 +800,14 @@ or a list thereof")
         (name (package-full-name package)))
     (for-each (lambda (checker)
                 (when tty?
-                  (format (current-error-port) "checking ~a [~a]...\r"
+                  (format (current-error-port) "checking ~a [~a]...\x1b[K\r"
                           name (lint-checker-name checker))
                   (force-output (current-error-port)))
                 ((lint-checker-check checker) package))
-              checkers)))
+              checkers)
+    (when tty?
+      (format (current-error-port) "\x1b[K")
+      (force-output (current-error-port)))))
 
 
 ;;;
-- 
2.7.3

Reply via email to