Created
April 3, 2022 01:11
-
-
Save toshi75/494f4c80657f74bbfcc02723b41ef81e to your computer and use it in GitHub Desktop.
tput装飾一覧
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tput装飾一覧 | |
https://qiita.com/onokatio/items/5d282b72ac5565ae4569 | |
色番号=>色 | |
0=>黒 | |
1=>赤 | |
2=>緑 | |
3=>黄色 | |
4=>青 | |
5=>マゼンタ | |
6=>シアン | |
7=>白 | |
tput setaf <色番号> #文字色を色番号にする | |
tput setab <色番号> #背景色を色番号にする | |
tput cup <y座標> <x座標> # 上からx行目左からy文字目にカーソル移動 | |
tput bold #太字 | |
tput clear # clearコマンドと同じ効果 | |
tput sgr0 # 装飾解除 | |
tput cols # ターミナルの横幅を文字数で出力 | |
tput lines # ターミナルの縦幅を文字数で出力 | |
tput civis # カーソル非表示 | |
tput cnorm # カーソル表示 | |
man terminfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment