From b5d2f2e9bb25807867ed975a5aaaf943e8ef28ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 27 Mar 2023 20:24:51 +0200 Subject: [PATCH] Update all modules documentation. --- MODULES.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/MODULES.md b/MODULES.md index 7f0c9f7..5247d80 100644 --- a/MODULES.md +++ b/MODULES.md @@ -321,6 +321,14 @@ splits it into multiple lines on word boundaries to wrap it nicely. The resulting string is free of ANSI CSI SGR sequences and may contain newline characters. + (ansi-string . args) + +* ```args``` - a list of strings and/or ANSI keywords + +Returns a string created by appending all the strings given and +```ansi``` function produced ones with consecutive keywords passed to +single ```ansi``` evaluation. + ### Command Line parsing Generic syntax-based implementation of command-line options parsing @@ -613,6 +621,14 @@ predicate. Returns a string created by repeating the string ```str``` exactly ```rep``` number of times. + (string-first+rest str) + +* ```str``` - a string to split + +Returns a pair of strings where the ```car``` of the pair is the first +token in the ```str``` given and ```cdr``` is a string with the +remainder with leading whitespace removed. + ### Table This module provides moderately complex terminal table rendering.