;; 文字色 (ansi-red "foo") ; => "\e[31mfoo\e[0m" (ansi-blue "bar") ; => "\e[34mbar\e[0m" ;; 背景色 (ansi-on-red "foo") ; => "\e[41mfoo\e[0m" (ansi-on-blue "bar") ; => "\e[44mbar\e[0m" ;; スタイル (ansi-bold "foo") ; => "\e[1mfoo\e[0m" (ansi-blink "bar") ; => "\e[5mbar\e[0m" ;;; DSL化!with-ansiでansi-プレフィクスを省略できる ;; 文字色 (with-ansi (red "foo") ; => "\e[31mfoo\e[0m" (blue "bar") ; => "\e[34mbar\e[0m" ) ;; 背景色 (w
![ansi.el : ANSIエスケープシーケンスをつける関数群](https://cdn-ak-scissors.b.st-hatena.com/image/square/a3c046ab7bfe74ed8ae2defb7fd7fd66affc6210/height=288;version=1;width=512/http%3A%2F%2Femacs.rubikitch.com%2Fwp-content%2Fuploads%2F2016%2F09%2Femacs.jpg)