Basic support for table ansi resets.
This commit is contained in:
parent
60850f60b0
commit
97dd257780
4 changed files with 18 additions and 10 deletions
|
@ -89,15 +89,21 @@
|
|||
(res '())
|
||||
(prev-borders #f))
|
||||
(if (null? rows)
|
||||
(apply append
|
||||
(reverse (if (table-border-between-rows? prev-borders #f)
|
||||
(cons (table-rows-border col-widths
|
||||
prev-borders
|
||||
#f
|
||||
col-separators
|
||||
unicode?)
|
||||
res)
|
||||
res)))
|
||||
(let ((res0 (apply append
|
||||
(reverse (if (table-border-between-rows? prev-borders #f)
|
||||
(cons (table-rows-border col-widths
|
||||
prev-borders
|
||||
#f
|
||||
col-separators
|
||||
unicode?)
|
||||
res)
|
||||
res)))))
|
||||
(if ansi-reset?
|
||||
(sgr-block-happend res0
|
||||
(make-table-vertical-sgr-block
|
||||
(sgr-block-height res0)
|
||||
"\x1b[0m"))
|
||||
res0))
|
||||
(loop (cdr rows)
|
||||
(cdr borders)
|
||||
(if (table-border-between-rows? prev-borders (car borders))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue