mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
lint: Emit an ANSI erase-in-line sequence.
* guix/scripts/lint.scm (run-checkers): Add '\x1b[K' to progress messages and after 'for-each'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
fc1adab148
commit
013c3fb8c7
1 changed files with 6 additions and 2 deletions
|
@ -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 @@ (define* (run-checkers package #:optional (checkers %checkers))
|
|||
(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)))))
|
||||
|
||||
|
||||
;;;
|
||||
|
|
Loading…
Reference in a new issue