mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
24 lines
403 B
Markdown
24 lines
403 B
Markdown
|
# 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`
|