Stripping in block.

This commit is contained in:
Dominik Pantůček 2023-07-02 07:51:29 +02:00
parent 2041fef742
commit 64b0b7fa5c

View file

@ -86,10 +86,13 @@
res))))))) res)))))))
;; Creates a plain list of strings from given block ;; Creates a plain list of strings from given block
(define* (sgr-block->string-list sb #:reset-state (reset-state #f)) (define* (sgr-block->string-list sb
#:reset-state (reset-state #f)
#:strip-ansi? (strip-ansi? #f))
(map (lambda (sl) (map (lambda (sl)
(sgr-list->string sl (sgr-list->string sl
#:reset-state reset-state)) #:reset-state reset-state
#:strip-ansi strip-ansi?))
sb)) sb))
;; Returns the width of the longest SGR line in the block ;; Returns the width of the longest SGR line in the block