Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # tput 명령어 예제
  4. # 화면 초기화
  5. tput clear
  6.  
  7. # 모든 속성을 초기화
  8. tput sgr0
  9.  
  10. # 커서 이동 CUrsor Position
  11. # 2번째 라인 3열로 이동
  12. tput cup 2 3
  13.  
  14. # 칼럼(열), 라인(행)의 개수 반환
  15. tput cols
  16. tput lines
  17.  
  18. # 백그라운드, 포어그라운드 색상 변경
  19. tput setb 4
  20. tput setf 4
  21. tput reset # 색상 변경 초기화
  22.  
  23. # 볼드 시작 종료
  24. tput bold
  25. tput sgr0
  26. tput bold; echo "볼드체"; tput sgr0
  27.  
  28. # 언더라인 시작 종료
  29. tput smul
  30. tput rmul
  31. tput smul; echo "언더라인"; tput rmul
  32.  
  33. # 문자열 깜빡이기
  34. tput blink; echo "깜빡임..."; tput sgr0
  35.  
  36. # 커서 숨기기, 보이기
  37. tput civis
  38. tput cnorm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement