Solved

Special Character

Posted on 2000-03-22
5
188 Views
Last Modified: 2010-04-20
Hi how to edit the text so it can echo on console as Bold (highlight) or have a beep ?
0
Comment
Question by:ahTri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:fremsley
ID: 2644045
Be a bit more specific, please.
0
 
LVL 14

Accepted Solution

by:
mcrider earned 50 total points
ID: 2644731
Look at your /etc/termcap file, and check out the man page on termcap...

To echo bold characters to the screen, do this... Any place you see ^ you should hold down the control key and hit the key that follows the ^:

   echo "^v^[[1mHello^v^[[0mWorld"

To send a beep, do this:

   echo "^v^g"



Cheers!®©
0
 

Author Comment

by:ahTri
ID: 2647248
Thanks, is there any fancy thing else ? like blinking for example !
0
 
LVL 2

Expert Comment

by:fremsley
ID: 2648336
Yes, you can set blinking and colours, see:

  http://www.dee.ufpb.br/~bob/tools/ansi.html

Remember: ^[ means ESC.
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2648653
fremsley,

Actually with ^[ you can hit ESC or do the actual CTRL-[

They both generate x1B...



ahTri,

All of the codes are defined in your /etc/termcap file.  See the MAN page on termcap, and then look at your termcap file.  Thanks for the points, glad I could help!  



Cheers!®©

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question