mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 17:54:48 +00:00
Update cheatsheets
This commit is contained in:
33
tput
Normal file
33
tput
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tput
|
||||
|
||||
> View and modify terminal settings and capabilities.
|
||||
> More information: <https://manned.org/tput>.
|
||||
|
||||
- Move the cursor to a screen location:
|
||||
|
||||
`tput cup {{row}} {{column}}`
|
||||
|
||||
- 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`
|
||||
|
||||
- Enable or disable word wrap:
|
||||
|
||||
`tput {{smam|rmam}}`
|
||||
Reference in New Issue
Block a user