07-29-2007
Try this command:
echo "one $(tput bold)two$(tput rmso) three"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
On the linux box I use at work, the directories are bold type to distinguish them.
Is there a way to make certain words in a text file bold?
Thanks! (4 Replies)
Discussion started by: Atama
4 Replies
2. Shell Programming and Scripting
Hi,
I have a file with multiple paragraph. I want to look for some word and make that paragraph bold. How can I do that?
Thanks,
Karthik (3 Replies)
Discussion started by: caprikar
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
How do I print some shell variable in BOLD/
Thanks for any suggestions,
Preeti (10 Replies)
Discussion started by: preetikate
10 Replies
4. Programming
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)
Discussion started by: svh
3 Replies
5. UNIX for Dummies Questions & Answers
pls disregard got my question answered . as you can't do bold in vi (0 Replies)
Discussion started by: xzyan
0 Replies
6. UNIX for Dummies Questions & Answers
I am ssh'd into my box using a terminal emulation of vt100. When I do a directory listing (ls) some of the file names are bold. I know that directories are also in bold, but these are not directories. What does a bolded filename mean?
This seems like such a basic question, but I've spent 20... (3 Replies)
Discussion started by: nunemaj
3 Replies
7. Shell Programming and Scripting
Dear
i want to bold a text using shell script.
please give sample..
Thanks
rex (1 Reply)
Discussion started by: jrex1983
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: trichyselva
2 Replies
9. Shell Programming and Scripting
Hi All,
How to make the characters bold in k shell.
like for example
"File is too large to view" to "File is too large to view"
is it like echo "File is too large to view"
Please advice and samples (18 Replies)
Discussion started by: rajeshorpu
18 Replies
10. Shell Programming and Scripting
Hi all,
I want to make the string as bold in unix.
is there any way to acheive this?
thanks in advance. (16 Replies)
Discussion started by: SekhaReddy
16 Replies
TPUT(1) BSD General Commands Manual TPUT(1)
NAME
tput, clear -- terminal capability interface
SYNOPSIS
tput [-T term] attribute [attribute-args] ...
DESCRIPTION
tput makes terminal-dependent information available to users or shell applications. The options are as follows:
-T The terminal name as specified in the terminfo(5) database, for example, ``vt100'' or ``xterm''. If not specified, tput retrieves
the ``TERM'' variable from the environment.
tput outputs a string if the attribute is of type string; a number if it is of type integer. Otherwise, tput exits 0 if the terminal has the
capability and 1 if it does not, without further action.
If the attribute is of type string, and takes arguments (e.g. cursor movement, the terminfo ``cup'' sequence) the arguments are taken from
the command line immediately following the attribute.
The following special attributes are available:
clear Clear the screen (the terminfo(5) ``cl'' sequence).
init Initialize the terminal (the terminfo(5) ``is2'' sequence).
longname Print the descriptive name of the user's terminal type.
reset Reset the terminal (the terminfo(5) ``rs1, rs2, rs3'' and ``rf'' sequence).
EXIT STATUS
The exit status of tput is based on the last attribute specified. If the attribute is of type string or of type integer, tput exits 0 if the
attribute is defined for this terminal type and 1 if it is not. If the attribute is of type boolean, tput exits 0 if the terminal has this
attribute, and 1 if it does not. tput exits 2 if any error occurred.
EXAMPLES
tput cl cm 5 10 clear the screen and goto line 5 column 10
tput cm 6 11 DC 6 goto line 6 column 11 and delete 6 characters
SEE ALSO
termcap(3), termcap(5)
HISTORY
The tput command appears in 4.4BSD.
BUGS
tput can't really distinguish between different types of attributes.
Not all terminfo entries contain the reset sequence, so using the init sequence may be more useful.
BSD
September 29, 2009 BSD