Skip to content

Commit 31a65a9

Browse files
committed
tput: add page
1 parent b566deb commit 31a65a9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pages/common/tput.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# tput
2+
3+
> View and modify terminal settings and capabilities.
4+
5+
- Move the cursor to a screen location:
6+
7+
`tput cup {{y_coordinate}} {{x_coordinate}}`
8+
9+
- Set foreground (af) or background (ab) color:
10+
11+
`tput {{setaf|setab}} {{ansi_color_code}}`
12+
13+
- Show number of columns, lines, or colors:
14+
15+
`tput {{cols|lines|colors}}`
16+
17+
- Ring the terminal bell:
18+
19+
`tput bel`
20+
21+
- Reset all terminal attributes:
22+
23+
`tput sgr0`

0 commit comments

Comments
 (0)