Solved

Special Character

Posted on 2000-03-22
5
184 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux/Apache File Ownership/Permissions 1 77
winscp where are logs stored 3 51
how to print sub line with  sed /awk /perl in bash file 11 48
IP 10.0.1.2 / 255.0.0.0 61 56
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

840 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