GuilhermeNobrega / tput

Used to manipulate our terminal. With it, we can change the color of text, apply effects, and generally brighten things up. More importantly, we can use tput to improve the human factors of our scripts. For example, we can use color and text effects to better present information to our users.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tput Tutorial

O comando tput é uma ferramenta poderosa em sistemas Unix/Linux que permite interagir com as capacidades do terminal, como mudar cores, posicionar o cursor e obter informações sobre o terminal. Este tutorial oferece uma breve visão geral do uso básico do tput e sugere onde você pode buscar informações adicionais.

Tput Básico

Obtendo Informações sobre o Terminal

  • Número de Linhas e Colunas:
    altura=$(tput lines)
    largura=$(tput cols)
    

Manipulando o Cursor

Mover o Cursor para uma Posição Específica:

tput cup 5 10  # Mover para a linha 5, coluna 10

Ocultar e Mostrar o Cursor:

tput civis  # Ocultar o cursor
tput cnorm  # Mostrar o cursor

Onde Buscar Mais Informações

Para aprender mais sobre as capacidades do tput e como usá-lo efetivamente, consulte a documentação e recursos online:

Lembre-se de que a experiência pode variar entre diferentes sistemas operacionais e terminais. Consulte também a documentação específica do seu terminal.

About

Used to manipulate our terminal. With it, we can change the color of text, apply effects, and generally brighten things up. More importantly, we can use tput to improve the human factors of our scripts. For example, we can use color and text effects to better present information to our users.


Languages

Language:Shell 100.0%