Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions pages/common/tput.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,26 @@

`tput {{setaf|setab}} {{ansi_color_code}}`

- Reset all terminal text attributes:

`tput sgr0`

- Show number of columns, lines, or colors:

`tput {{cols|lines|colors}}`

- Ring the terminal bell:
- Enable or disable word wrap:

`tput bel`
`tput {{smam|rmam}}`

- Reset all terminal attributes:
- Hide or show the terminal cursor:

`tput sgr0`
`tput civis|cnorm`

- Enable or disable word wrap:
- Save or restore terminal text status:

`tput {{smam|rmam}}`
`tput smcup|rmcup`

- Ring the terminal bell:

`tput bel`