内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
bash
»
script
»
09 color表示
トレース:
bash:script:09_display_color
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 09 color表示 ====== <code> $ echo -e '\e[VALUE[;VALUE..]mSTRINGS\e[m' </code> VALUE <code> Text attributes 0 All attributes off 1 Bold on 4 Underscore (on monochrome display adapter only) 5 Blink on 7 Reverse video on 8 Concealed on Foreground colors 30 Black 31 Red 32 Green 33 Yellow 34 Blue 35 Magenta 36 Cyan 37 White Background colors 40 Black 41 Red 42 Green 43 Yellow 44 Blue 45 Magenta 46 Cyan 47 White </code> 1.赤文字にする。 <code console> echo -e "\e[31m AAAA \e[0m" </code> 2.背景黄色の文字赤にする。 <code console> echo -e "\e[31m\e[43m AAAA \e[0m" </code> 3.大文字緑にする。 <code console> echo -e "\e[1;32m AAAA \e[0m" </code> {{tag>bash}}
bash/script/09_display_color.txt
· 最終更新: 2015/05/08 06:21 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ