From: Danny Milosavljevic <dannym@scratchpost.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: guix lint
Date: Thu, 7 Apr 2016 14:37:44 +0200 [thread overview]
Message-ID: <20160407143744.3b0d8e98@scratchpost.org> (raw)
Currently, when run from gnome-terminal, "guix lint" prints CR and then writes a shorter text, resulting in a less-than-ideal display.
I propose to clear-to-end-of-line before that.
Also, at the very end of the lint check it still did this:
dannym@dayas ~/src/guix$ -0.9.4 [formatting]...
^^^^
Therefore, I clear the line at the very end of "run-checkers" as well.
diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm
index 27b9e15..afa9628 100644
--- a/guix/scripts/lint.scm
+++ b/guix/scripts/lint.scm
@@ -799,11 +799,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)))))
^L
;;;
next reply other threads:[~2016-04-07 12:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 12:37 Danny Milosavljevic [this message]
2016-04-07 15:09 ` guix lint Leo Famulari
2016-04-07 17:20 ` Efraim Flashner
2016-04-07 21:48 ` Ludovic Courtès
2016-04-08 18:07 ` bug#22536: " Danny Milosavljevic
2016-04-08 18:07 ` Danny Milosavljevic
2016-04-08 18:45 ` bug#22536: Progress on the guix download progress display Danny Milosavljevic
2016-04-14 22:38 ` bug#22536: guix lint Ludovic Courtès
2016-04-14 22:38 ` Ludovic Courtès
2016-04-08 15:59 ` [PATCH] guix lint: at the "checking" line, make sure to delete the old line's text before overwriting it (with a possibly shorter text) Danny Milosavljevic
2016-04-13 21:20 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160407143744.3b0d8e98@scratchpost.org \
--to=dannym@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.