![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make a bold text in vi | xzyan | UNIX for Dummies Questions & Answers | 0 | 09-02-2006 01:30 PM |
| write data into a text file in bold format | miltony | UNIX for Dummies Questions & Answers | 1 | 09-28-2005 07:21 AM |
| Bold text | svh | High Level Programming | 3 | 08-29-2005 01:04 AM |
| Printing in Bold | preetikate | UNIX for Dummies Questions & Answers | 10 | 02-25-2004 08:57 AM |
| Bold the paragraph | caprikar | Shell Programming and Scripting | 3 | 12-22-2003 06:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Ok, I found the your post and I'm able to see the bold text and the affect I'm looking for when I do echo ^[[1mhello^[[0m on the command line.
But how can I do that in a file? I mean when I place "echo ^[[1mhello^[[0m" in a file, it obviously just shows up as "echo ^[[1mhello^[[0m" when I view it, instead of the bold text I would get by doing it on the command line. Thanks |
|
|||||
|
Are you using ctrl+[, or just typing ^[ ?
Also, your terminal or the viewing program may be to blame. I was able to recreate this: ls --color=always > file vi file results in: Code:
^[[00m^[[01;34mDesktop^[[00m/ ^[[01;34mMail^[[00m/ ^[[01;34mNews^[[00m/ ^[[01;34mbin^[[00m/ [...] By the way, this is on a Linux system, with GNU ls, using a color xterm emulator. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|