by shigemk2


echoを色付きで書く そらで書きたかった

$ echo -e "\e[33mhoge\e[m"

echo -eでバックスラッシュの使用を許可する。


Esc[Value;...;Valuem Set Graphics Mode: Calls the graphics functions specified by the following values. These specified functions remain active until the next occurrence of this escape sequence. Graphics mode changes the colors and attributes of text (such as bold and underline) displayed on the screen.

echoコマンドの出力の色を変更する - daijirocの日記

ASCII Table - ANSI Escape sequences