From: Danny Milosavljevic <dannym+a@scratchpost.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] guix lint: at the "checking" line, make sure to delete the old line's text before overwriting it (with a possibly shorter text).
Date: Fri, 8 Apr 2016 17:59:12 +0200 [thread overview]
Message-ID: <20160408175912.6c5df4b7@scratchpost.org> (raw)
In-Reply-To: <20160407143744.3b0d8e98@scratchpost.org>
* 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 <bavier@member.fsf.org>
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
+;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
;;;
;;; 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)))))
\f
;;;
--
2.7.3
next prev parent reply other threads:[~2016-04-08 15:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 12:37 guix lint Danny Milosavljevic
2016-04-07 15:09 ` Leo Famulari
2016-04-07 17:20 ` Efraim Flashner
2016-04-07 21:48 ` Ludovic Courtès
2016-04-08 18:07 ` Danny Milosavljevic
2016-04-14 22:38 ` bug#22536: " Ludovic Courtès
2016-04-08 15:59 ` Danny Milosavljevic [this message]
2016-04-13 21:20 ` [PATCH] guix lint: at the "checking" line, make sure to delete the old line's text before overwriting it (with a possibly shorter text) Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160408175912.6c5df4b7@scratchpost.org \
--to=dannym+a@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).