tldr/pages/common/tput.md

29 lines
489 B
Markdown
Raw Normal View History

2016-02-23 00:31:30 +00:00
# tput
> View and modify terminal settings and capabilities.
> More information: <https://manned.org/tput>.
2016-02-23 00:31:30 +00:00
- Move the cursor to a screen location:
2022-11-16 14:08:31 +00:00
`tput cup {{row}} {{column}}`
2016-02-23 00:31:30 +00:00
- 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`
2017-04-15 12:29:28 +01:00
2022-12-06 06:48:59 +00:00
- Enable or disable word wrap:
2017-04-15 12:29:28 +01:00
`tput {{smam|rmam}}`