ansi-*

Synopsis

ansi-reset

ansi-bold

ansi-black

ansi-red

ansi-green

ansi-yellow

ansi-blue

Description

This is a set of predefined string variables containing ANSI escape sequences for setting different forgreound colors. On most terminals and terminal programs those ANSI sequences are supported. Writing ansi-reset resets everything to its defaults, ansi-bold turns on the bold property.

Implementation

(define ansi-reset "\027[0m")
(define ansi-bold "\027[1m")
(define ansi-black "\027[30m")
(define ansi-red "\027[31m")
(define ansi-green "\027[32m")
(define ansi-yellow "\027[33m")
(define ansi-blue "\027[34m")

Example

ansi-esc