- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: show the character in colur
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 01:37 AM
12-03-2008 01:37 AM
I tried the below method , but not work .
tput bold
echo "This"
tput sgr0 #Reset text attributes to normal without clear.
echo "This"
$ echo -e "\033[1mThis is a BOLD line\033[0m"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 02:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 04:15 AM
12-03-2008 04:15 AM
Re: show the character in colur
BOLDred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 11:40 PM
12-03-2008 11:40 PM
Re: show the character in colur
this seems a html code , but I am not familiar with it , can I use shell script to do it ? please advise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 05:28 AM
12-04-2008 05:28 AM
Re: show the character in colur
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
xxxxxx
- xxxxxxxxxxxxxxxx
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 07:42 AM
12-04-2008 07:42 AM
Re: show the character in colur
Seems as if this does little other than
adding extra work (changing "=" to "=3D"
everywhere, and so on). Why do it (for a
plain-text e-mail message)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 08:16 PM
12-04-2008 08:16 PM
Re: show the character in colur
ESC="\0033"
print -n "${ESC}[1;30m Black Text ${norm}\t ${ESC}[1;31m Red Text ${norm}\t\t"
print "${ESC}[1;32m Green Text ${norm}\t ${ESC}[1;33m Yellow Text ${norm}"
print -n "${ESC}[1;34m Blue Text ${norm}\t ${ESC}[1;35m Magenta Text ${norm}\t"
print "${ESC}[1;36m Cyan Text ${norm}\t ${ESC}[1;37m White Text ${norm}"
Find the manual for your terminal emulator, as this may give you a few ideas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 08:25 PM
12-04-2008 08:25 PM
Re: show the character in colur
heaman1 said notes so I assume he has to make windows happy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 09:29 PM
12-04-2008 09:29 PM
Re: show the character in colur
It's not the OS which needs to be happy, it's
the program (or, I suppose, device) which is
used to display the e-mail message. If
that's a HTML-capable e-mail client, then it
makes sense to code the colors as HTML. If
it's a terminal (emulator), then it makes
sense to use terminal (emulator) control
codes.
As usual here, the problem statement lacks
sufficient information to determine the
actual problem, so we're left to guess (or
not).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 09:33 PM
12-04-2008 09:33 PM
Re: show the character in colur
If he wants the coloured text in an e-mail, then you are right, in that he should use HTML. However, for the HTML to work, the mail must be sent as a MIME mail alternate mail format. The standard UNIX mail and mailx are unsuitable for sending the alternate formats used by MIME. If the HTML is sent in the body of a standard e-mail, it is not displayed as HTML. It also does not display, if sent as an attachment. A MIME mailer is the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 10:21 PM
12-04-2008 10:21 PM
Re: show the character in colur
Laurent's mail solution works fine. (I'm not sure why? Except mail(1) may allow the body to contribute to the headers?) Using mailx(1) fails because there is a blank line. I'm assuming using sendmail would also work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 10:23 PM
12-04-2008 10:23 PM
Re: show the character in colur
>Steven: It's not the OS which needs to be happy,
By "windows" I originally had bill gates. The whole windows infrastructure, including outlook, etc.