ansikit.text¶
Text styling escape codes.
Full list of styles¶
- reset
- bold
- faint
- italic
- underline
- double underline
- slow blink
- rapid blink
- reverse
- conceal
- strikethrough
- ANSI fonts
- fraktur
- framed
- overline
See this page for more details on each.
reset¶
Resets all text styling.
bold¶
Sets bold text.
notBold¶
Removes bold effect (as well as faint effect).
faint¶
Sets faint text.
notFaint¶
Removes faint effect (as well as bold effect).
italic¶
Sets italic text.
notItalic¶
Removes italic effect (as well as Fraktur text).
underline¶
Sets underlined text.
doubleUnderline¶
Sets doubly-underlined text.
notUnderline¶
Removes underline effect.
blink¶
Alias → slowBlink
Sets slow blinking text.
rapidBlink¶
Sets rapid blinking text.
notBlink¶
Removes blinking effect.
reverse¶
Reverse video text. Swaps foreground and background colors.
notReverse¶
Removes reverse effect.
conceal¶
Conceals text.
notConceal¶
Alias → reveal
Reveals text.
crossed¶
Alias → strikethrough
Sets crossed-out text.
notCrossed¶
Alias → notStrikethrough
Removes strikethrough effect.
resetFont¶
Sets the primary and default font.
setFont¶
Signature → ([number]) -> nil
Sets an alternative font n
. n
defaults to 0.
fraktur¶
Sets Fraktur text.
notFraktur¶
Removes Fraktur effect (as well as italic text).
framed¶
Sets framed text.
encircled¶
Sets encircled text.
notFramed¶
Alias → notEncircled
Removes framed and encircled effects.
overline¶
Sets overlined text.
notOverline¶
Removes overline effect.