소스 검색

tput: add page

Hayden Schiff 9 년 전
부모
커밋
31a65a9348
1개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      pages/common/tput.md

+ 23 - 0
pages/common/tput.md

@@ -0,0 +1,23 @@
+# tput
+
+> View and modify terminal settings and capabilities.
+
+- Move the cursor to a screen location:
+
+`tput cup {{y_coordinate}} {{x_coordinate}}`
+
+- Set foreground (af) or background (ab) color:
+
+`tput {{setaf|setab}} {{ansi_color_code}}`
+
+- Show number of columns, lines, or colors:
+
+`tput {{cols|lines|colors}}`
+
+- Ring the terminal bell:
+
+`tput bel`
+
+- Reset all terminal attributes:
+
+`tput sgr0`