Version0.16.0Verifiednot yet verifiedLicenseBSD-3-Clause
Readme
sigil-ansi
ANSI terminal color and formatting library for Sigil.
Provides ANSI escape codes for terminal colors and text formatting. All functions are prefixed with a: to avoid naming conflicts.
Usage
(import (sigil ansi))
(display (a:green "PASS"))
(display (a:bold (a:red "FAIL")))
(display (a:dim "at test.sgl:42"))Styles compose by nesting:
(display (a:bold (a:underline (a:cyan "Important"))))Cursor and screen control:
(display (a:clear-screen))
(display (a:cursor-position 10 20))Disable color globally for non-TTY output:
(with-ansi-disabled
(lambda ()
(display (a:red "no color here"))))API
| Surface | Functions |
|---|---|
| Foreground colors | a:black a:red a:green a:yellow a:blue a:magenta a:cyan a:white (+ a:bright-* variants) |
| Background colors | a:bg-black a:bg-red a:bg-green a:bg-yellow a:bg-blue a:bg-magenta a:bg-cyan a:bg-white |
| Styles | a:bold a:dim a:italic a:underline a:blink a:inverse a:hidden a:strikethrough |
| Reset | a:reset |
| Cursor | a:clear-screen a:clear-line a:cursor-up a:cursor-down a:cursor-forward a:cursor-back a:cursor-home a:cursor-position a:hide-cursor a:show-cursor a:save-cursor a:restore-cursor |
| Utilities | strip-ansi ansi-enabled? with-ansi-disabled |
Build & Test
sigil deps install
sigil testLicense
BSD-3-Clause. See package.sgl for authors.
Clone
$ git clone https://codeberg.org/sigil/sigil-ansi
Releases
v0.16.0 — latest by version, released 6 May 2026
All releases — 3 tags in this repository.
Source
One page per file, and every line has a permalink.
Recent commitsAtom
6 Maycommit
1e14b6f9
3 Maycommit
26 Aprcommit
8ee9a08a
26 Aprcommit
26 Aprcommit
26 Aprcommit
26 Aprcommit
25 Aprcommit
25 Aprcommit
7 Aprcommit
1 Aprcommit
1 Aprcommit
31 Marcommit
1 Marcommit
d182aa70
25 Febcommit
22 Febcommit
a7fba3bc
17 Febcommit
ae4f78f0
15 Febcommit
14 Jancommit
6f05f4fa
The last 20 commits keep a page here. Everything older lives in the clone.