mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
ui: Use 'terminal-columns'.
* guix/ui.scm (%text-width): Default to (terminal-columns).
This commit is contained in:
parent
069d43a765
commit
9703fef415
1 changed files with 2 additions and 2 deletions
|
@ -34,6 +34,7 @@ (define-module (guix ui)
|
|||
#:use-module (guix serialization)
|
||||
#:use-module ((guix build utils) #:select (mkdir-p))
|
||||
#:use-module ((guix licenses) #:select (license? license-name))
|
||||
#:use-module ((guix build syscalls) #:select (terminal-columns))
|
||||
#:use-module (gnu system file-systems)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-11)
|
||||
|
@ -816,8 +817,7 @@ (define (maybe-break chr result)
|
|||
;;;
|
||||
|
||||
(define %text-width
|
||||
(make-parameter (or (and=> (getenv "WIDTH") string->number)
|
||||
80)))
|
||||
(make-parameter (terminal-columns)))
|
||||
|
||||
(set! (@@ (texinfo plain-text) wrap*)
|
||||
;; XXX: Monkey patch this private procedure to let 'package->recutils'
|
||||
|
|
Loading…
Reference in a new issue