There are two different versions of tput; one uses the terminfo database, the other the termcap database.
As I wrote in Pro Bash Programming (publication date is next Monday, Oct. 19):
Unix purists will shake their heads over this chapter. Traditionally, screen manipulation is done through the termcap or terminfo database that supplies the information necessary to manipulate any of dozens or even hundreds of types of terminal. The shell interface to the database is an external command, tput.
On some systems, tput uses the termcap database; on others (mostly newer systems) it uses the terminfo database. The commands for the two databases are not the same, so a tput command written for one system may not work on another.
On one system, the command to place the cursor at the 20th column on the 10th row is:
tput cup 9 19
On another system, the command is:
tput cm 19 9
These commands will produce the correct output for whatever type of terminal is specified in the TERM variable. (Note: tput starts counting at 0.)
However, the plethora of terminal types has, for all intents and purposes, been reduced to a single, standard type. This standard, ISO 6429 (also known as ECMA-48, and formerly known as ANSI X3.64 or VT100), is ubiquitous, and terminals that do not support it are few and far between. As a result, it is now feasible to code for a single terminal type. One advantage of this homogeneity is that the necessary coding can be done entirely within the shell. There's no need for an external command.
hello,
how do i display the text in the printf statement in bold.
or is there anyway to display the text on the console in bold
thx in advance
svh (3 Replies)
hi friend ,
I am generating a csv file i,e output file
E104|0|06/04/1994|The values E005 and E001 are not equal.
E106|0|01/09/1993|The values E001 and E002 are not equal.
E106|0|01/09/1993|The values E003 and E002 are not equal.
E108|0|02/30/1995|The values R001 and E001 are not equal.... (0 Replies)
I sh,
I have bold characters in a file and I want to mail file to an ID.
$cat file
Incorrect or invalid external email IDs in TO and CC list for email_rules:
If I pass this file to mailx
$ cat file | mailx -s "hi" abc@xyz.com
What I get in mail is
(8 Replies)
Hi,
When I am running below mentioned script then the characters become bold but after opening the same file in Windows, Instead of getting bold characters i am getting some garbage value for \033Kunal Dixit
Output in Windows (after ftp the file):
but in windows , i am getting
My name is... (0 Replies)
Hi,
i am using mailx option to send mail from unix
In the body of the mail i want certain numbers to be displayed in bold
Is there any way to do it
If so, can anyone help me in this regard. (2 Replies)
Hi All,
I want to make some characters to be bold in a file.
I have a file e.g aa.log which contains
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
gfgfgdaerqrqwrqerqwrwqwrqrqwrqr
qqwerqwrqwrqwrqwrqwrqwrqwrq
qwrqwrqwrqwrqwrqwrqwrqwrqwr
File is too large to view
Last line... (2 Replies)
Hi!
So i've got this shell script that asks questions and the user is required to input answers. The answers typed are bold.
sh-*.*$ sh filename dir
cat question
tput bold
read ans
tput sgr0
... and so on
tput sgr0
exit
So when the script ends i don't get the bold characters... (3 Replies)