10-02-2001
Check the man pages for:
termcap, terminfo, tput, stty
...I assume you're trying to take advantage of a color
terminal. Note that your TERM setting must be correct.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Please help me in setting the font in a CSV file through
shell script..... I tried xset it throws me an error that reads
Cant open display "" Is there any other way to set fonts like
Caps & Character size etc..
I appreciate if anyone could help me. :cool:
Cheers ;)... (0 Replies)
Discussion started by: srikanthdbn
0 Replies
2. Shell Programming and Scripting
Hi,
We have process log with user defined error messages and information echos. I wanted to highlight error messgaes in that log file while writing in it. Is there any option with either echo or any other command which enables making text bold or we can change the font of body text of echo.
... (4 Replies)
Discussion started by: satgo
4 Replies
3. UNIX for Advanced & Expert Users
I need to print different lines in different font types and sizes to the terminal window from csh script. I can easily change font color and print characters in bold or underline, but cannot figure out a way to change font. Any help is greatly appreciated.:confused: (3 Replies)
Discussion started by: helido
3 Replies
4. Shell Programming and Scripting
Hi,
I am new to shell script. Can you please tell me, whether can we specify font type and color in a shell script? If so, how to do this?
Thanks in advance. (4 Replies)
Discussion started by: Vani_Govind
4 Replies
5. Shell Programming and Scripting
I am working on a script that checks two arguments at the command line. The first argument is a search pattern, the second can be a file or a directory, if it is a file a second script is called that checks it for the search pattern. If the second argument is a directory, it checks for the search... (5 Replies)
Discussion started by: Breakology
5 Replies
6. Shell Programming and Scripting
I'm writing a simple menu script and I would like to output the whole script using background color: black AND foreground color:white. Meaning if the ssh terminal of a user is set to green for example, it will change to my desired color when menu script is executed. Once the script is exited, it... (1 Reply)
Discussion started by: lhareigh890
1 Replies
7. Shell Programming and Scripting
i am using ubuntu 11.04 and i just finished writing a shell script but i was wanting to know if their is a way to change the font color of just one sentence? (2 Replies)
Discussion started by: hotshot247
2 Replies
8. Shell Programming and Scripting
I created a very very basic script that opens multiple konsole terminals when I run the script which essentially sshs into a jump box into the end device and tails some logs etc etc. A few of the konsoles run scripts where the default font size is too big and the lines are cut off. Which I would... (3 Replies)
Discussion started by: NiCe
3 Replies
9. Shell Programming and Scripting
Hi,
Iam writing a script in unix shell and need to edit the output (With colors and bold/italic/underline) and send as email. Can someone please help me on this requirement
Output as below. Need to know how to set this in echo command
Message Flow: messageflow1 //need to put this in red... (7 Replies)
Discussion started by: Anusha M
7 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