ui: Use 'terminal-columns'.
* guix/ui.scm (%text-width): Default to (terminal-columns).master
parent
069d43a765
commit
9703fef415
|
@ -34,6 +34,7 @@
|
||||||
#:use-module (guix serialization)
|
#:use-module (guix serialization)
|
||||||
#:use-module ((guix build utils) #:select (mkdir-p))
|
#:use-module ((guix build utils) #:select (mkdir-p))
|
||||||
#:use-module ((guix licenses) #:select (license? license-name))
|
#:use-module ((guix licenses) #:select (license? license-name))
|
||||||
|
#:use-module ((guix build syscalls) #:select (terminal-columns))
|
||||||
#:use-module (gnu system file-systems)
|
#:use-module (gnu system file-systems)
|
||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
#:use-module (srfi srfi-11)
|
#:use-module (srfi srfi-11)
|
||||||
|
@ -816,8 +817,7 @@ converted to a space; sequences of more than one line break are preserved."
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
(define %text-width
|
(define %text-width
|
||||||
(make-parameter (or (and=> (getenv "WIDTH") string->number)
|
(make-parameter (terminal-columns)))
|
||||||
80)))
|
|
||||||
|
|
||||||
(set! (@@ (texinfo plain-text) wrap*)
|
(set! (@@ (texinfo plain-text) wrap*)
|
||||||
;; XXX: Monkey patch this private procedure to let 'package->recutils'
|
;; XXX: Monkey patch this private procedure to let 'package->recutils'
|
||||||
|
|
Reference in New Issue