The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-11-2002
Atama Atama is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 16
Bold Text?

Hello,

On the linux box I use at work, the directories are bold type to distinguish them.

Is there a way to make certain words in a text file bold?


Thanks!
  #2 (permalink)  
Old 04-11-2002
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
A text file is just plain text. it may be possible to include certain escape sequences so that your text is highlighted or colored when viewed using 'less' or 'more'. Please search the forum for my previous posts on ANSI color codes.
  #3 (permalink)  
Old 04-11-2002
Atama Atama is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 16
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
  #4 (permalink)  
Old 04-12-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
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/
[...]
While cat file will show it in color.

By the way, this is on a Linux system, with GNU ls, using a color xterm emulator.
  #5 (permalink)  
Old 04-12-2002
Atama Atama is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 16
Got it. Thanks!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0