1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-09 09:46:02 +02:00

tput: add examples (#15638)

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
Managor 2025-02-09 09:20:05 +02:00 committed by GitHub
parent c32bfdde04
commit c0df7e9877
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,18 +11,26 @@
`tput {{setaf|setab}} {{ansi_color_code}}`
- Reverse text and background colors:
`tput rev`
- Reset all terminal text attributes:
`tput sgr0`
- Show number of columns, lines, or colors:
`tput {{cols|lines|colors}}`
- Ring the terminal bell:
`tput bel`
- Reset all terminal attributes:
`tput sgr0`
- Enable or disable word wrap:
`tput {{smam|rmam}}`
- Hide or show the terminal cursor:
`tput {{civis|cnorm}}`
- Save or restore terminal text status (smcup also captures scroll wheel events):
`tput {{smcup|rmcup}}`