mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-19 10:47:33 +02:00
adding (srfi 159) wrapper around (chibi show)
This commit is contained in:
parent
f6f470c3e5
commit
73734c7010
6 changed files with 60 additions and 1 deletions
|
@ -2,5 +2,6 @@
|
||||||
(define-library (chibi show color)
|
(define-library (chibi show color)
|
||||||
(import (scheme base) (chibi show base))
|
(import (scheme base) (chibi show base))
|
||||||
(export as-red as-blue as-green as-cyan as-yellow
|
(export as-red as-blue as-green as-cyan as-yellow
|
||||||
as-magenta as-white as-black as-bold)
|
as-magenta as-white as-black
|
||||||
|
as-bold as-underline)
|
||||||
(include "color.scm"))
|
(include "color.scm"))
|
||||||
|
|
27
lib/srfi/159.sld
Normal file
27
lib/srfi/159.sld
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
|
||||||
|
(define-library (srfi 159)
|
||||||
|
(import (srfi 159 base) (srfi 159 columnar)
|
||||||
|
(srfi 159 unicode) (srfi 159 color))
|
||||||
|
(export
|
||||||
|
;; base
|
||||||
|
show fn fn-fork with update! each each-in-list call-with-output
|
||||||
|
displayed written written-shared written-simply
|
||||||
|
numeric numeric/comma numeric/si numeric/fitted
|
||||||
|
nothing nl fl space-to tab-to escaped maybe-escaped
|
||||||
|
padded padded/left padded/right padded/both
|
||||||
|
trimmed trimmed/left trimmed/right trimmed/both trimmed/lazy
|
||||||
|
fitted fitted/left fitted/right fitted/both
|
||||||
|
joined joined/prefix joined/suffix joined/last joined/dot joined/range
|
||||||
|
upcased downcased
|
||||||
|
;; columnar
|
||||||
|
call-with-output-generator call-with-output-generators
|
||||||
|
string->line-generator
|
||||||
|
tabular columnar show-columns wrapped wrapped/list wrapped/char
|
||||||
|
justified line-numbers from-file
|
||||||
|
;; unicode
|
||||||
|
as-unicode unicode-terminal-width
|
||||||
|
;; color
|
||||||
|
as-red as-blue as-green as-cyan as-yellow
|
||||||
|
as-magenta as-white as-black
|
||||||
|
as-bold as-underline
|
||||||
|
))
|
13
lib/srfi/159/base.sld
Normal file
13
lib/srfi/159/base.sld
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
(define-library (srfi 159 base)
|
||||||
|
(import (chibi show))
|
||||||
|
(export
|
||||||
|
show fn fn-fork with update! each each-in-list call-with-output
|
||||||
|
displayed written written-shared written-simply
|
||||||
|
numeric numeric/comma numeric/si numeric/fitted
|
||||||
|
nothing nl fl space-to tab-to escaped maybe-escaped
|
||||||
|
padded padded/left padded/right padded/both
|
||||||
|
trimmed trimmed/left trimmed/right trimmed/both trimmed/lazy
|
||||||
|
fitted fitted/left fitted/right fitted/both
|
||||||
|
joined joined/prefix joined/suffix joined/last joined/dot joined/range
|
||||||
|
upcased downcased))
|
6
lib/srfi/159/color.sld
Normal file
6
lib/srfi/159/color.sld
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
(define-library (srfi 159 color)
|
||||||
|
(import (chibi show color))
|
||||||
|
(export as-red as-blue as-green as-cyan as-yellow
|
||||||
|
as-magenta as-white as-black
|
||||||
|
as-bold as-underline))
|
8
lib/srfi/159/columnar.sld
Normal file
8
lib/srfi/159/columnar.sld
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
(define-library (srfi 159 columnar)
|
||||||
|
(import (chibi show column))
|
||||||
|
(export
|
||||||
|
call-with-output-generator call-with-output-generators
|
||||||
|
string->line-generator
|
||||||
|
tabular columnar show-columns wrapped wrapped/list wrapped/char
|
||||||
|
justified line-numbers from-file))
|
4
lib/srfi/159/unicode.sld
Normal file
4
lib/srfi/159/unicode.sld
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
(define-library (srfi 159 unicode)
|
||||||
|
(import (chibi show unicode))
|
||||||
|
(export as-unicode unicode-terminal-width))
|
Loading…
Add table
Reference in a new issue