status: final (2020-07-30)
keywords: I/O
See also SRFI 13: String Libraries, SRFI 159: Combinator Formatting, and SRFI 165: The Environment Monad.A library of procedures for formatting Scheme objects to text in various ways, and for easily concatenating, composing and extending these formatters efficiently without resorting to capturing and manipulating intermediate strings.
This SRFI is an updated version of SRFI 159, primarily with the difference that state variables are hygienic.
Summary of differences from SRFI 159:
written-shared
, pretty-shared
as-italic
, as-color
, as-true-color
, on-color
background variants, and pretty-with-color
ambiguous-is-wide?
state variable and string-terminal-width/wide
utilitysubstring/width
state var for width-aware substring operations, with substring-terminal-width(/wide)
utilitiessubstring/preserve
state var used in trimming, with substring-terminal-preserve
utilitypretty-environment
state variableas-unicode
to terminal-aware
upcased
and downcased