Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: bolding words within format

by stefan k (Curate)
on Sep 04, 2001 at 18:35 UTC ( [id://110042]=note: print w/replies, xml ) Need Help??


in reply to bolding words within format

If you're living in an ANSI Terminal (like xterm) you could use ansi escape sequences:
print "The following text will be"; print "\033[1m"; # bold on print " bold "; print "\033[m"; # bold off print "\n";
You may find a bash prompt howto on your system where many such sequences are described: On my system it's called Bash-Prompt-HOWTO.

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion

Replies are listed 'Best First'.
Re: Re: bolding words within format
by suaveant (Parson) on Sep 04, 2001 at 19:28 UTC
    The only problem with ansi escape chars is that many things read them as normal chars, but since they are non-printing they throw some things off, since it sees the string as longer than it actually prints... I'm not sure if format knows better or not, but I doubt it... just something good to know.

                    - Ant
                    - Some of my best work - Fish Dinner

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://110042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found