1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 02:18:01 +01:00

Merge pull request #793 from oxguy3/patch-7

tput: add page
This commit is contained in:
Igor Shubovych 2016-03-01 21:59:54 +02:00
commit 6e94611f88

23
pages/common/tput.md Normal file
View file

@ -0,0 +1,23 @@
# 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`