Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # tput 명령어 예제
- # 화면 초기화
- tput clear
- # 모든 속성을 초기화
- tput sgr0
- # 커서 이동 CUrsor Position
- # 2번째 라인 3열로 이동
- tput cup 2 3
- # 칼럼(열), 라인(행)의 개수 반환
- tput cols
- tput lines
- # 백그라운드, 포어그라운드 색상 변경
- tput setb 4
- tput setf 4
- tput reset # 색상 변경 초기화
- # 볼드 시작 종료
- tput bold
- tput sgr0
- tput bold; echo "볼드체"; tput sgr0
- # 언더라인 시작 종료
- tput smul
- tput rmul
- tput smul; echo "언더라인"; tput rmul
- # 문자열 깜빡이기
- tput blink; echo "깜빡임..."; tput sgr0
- # 커서 숨기기, 보이기
- tput civis
- tput cnorm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement