Shell Scripting Tutorial-27: Do Cool Things With 'tput'

preview_player
Показать описание
In this tutorial you'll learn to use the 'tput' command to change text-display settings, position the cursor at any location on the terminal and to determine the number of rows and columns in your terminal.
Рекомендации по теме
Комментарии
Автор

Can we determine the current cursor position using tput command?

ap
Автор

HI MADHUR,
I am working with RedHatEnterprise. its not printing the noraml mode Bye BYE should print in normal mode but its printing in bold ..??? any solution do u have to solve...??

prakashmalakar
Автор

Hey Madhur.. Nice job regarding scripting.. Here ur showing/calling Rows as Columns  & Columns as Rows ... Corect me if I'm wrong.. :(

meprabs
Автор

Hi Madhur, I am working with RedHatEnterpriseServer
And found out that :
echo "Total number of rows on screen=\c" is not working as expected.When I googled I found out that it must be preceded by -e to enable -c

So FYI for others If they are using RedHatEnterpriseServer the echo command should be
echo -e "Total number of rows on screen=\c"

You can find more explaination on below stack:

hemantvarhekar
Автор

Hi, your tutorial are awesome & Thank you for uploading the vedios, can you give the reverse of bold command  using tput command

kolajagadish
Автор

At the end you said it wrong its not horizontally for column and vertically for rows its just the opposite.

pranjalkumar
Автор

if want for to check for particular file then how can we check with tput command.

shubhamagarwal
Автор

Use echo -e to get escape sequences to work if they're not working for you. This happens on Ubuntu 14.04

montheist_tv
Автор

tput bold not working ?dnt knw y?
help me out

achal
Автор

Previous versions of Ubuntu were so much better.

一郎-ei
Автор

In tput cup 15 20,
I think 15 is the column number and 20 is the row number.
what do you say? :)

vidyapusandeep
welcome to shbcf.ru