LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-23-2003, 11:46 PM   #1
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 437

Rep: Reputation: 30
bold Font in Bash Or C


Is there any way to get bold font in bash scripts (or c) cois it'd be really handy

Ta,
Allan
 
Old 09-24-2003, 01:45 AM   #2
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 32
Code:
#!/usr/bin/sh
echo "This is normal";
tput bold;
echo "This is bold ";
check out man tput for more optons...
 
Old 09-24-2003, 03:02 AM   #3
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 437

Original Poster
Rep: Reputation: 30
Hmmmm... what can I say but.... DUDE YOU ROCK

Thanks so much for that, been trying to figure it out for AGES lol

Thanks again
Allan
 
Old 09-24-2003, 03:40 AM   #4
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 437

Original Poster
Rep: Reputation: 30
K I tried that but how do you unbold it afterwards, tried reset but it clears the screen
 
Old 09-24-2003, 04:15 AM   #5
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 32
Code:
#!/usr/bin/sh
 echo "This is normal"; 
tput bold;
echo "This is bold ";
tput sgr0 ;
 echo "this is not bold"
Check out "man terminfo" for more details...
 
Old 09-24-2003, 05:26 PM   #6
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
http://www.tldp.org/LDP/abs/html/colorizing.html

Same info that SaTaN provided really. Goes into color too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I xemacs bold? wmcase Linux - Software 2 05-26-2005 04:15 PM
help! bash command prompt font/color change richiangpan9 Linux - Newbie 3 04-24-2005 12:34 PM
Can not display bold font in Mozilla firefox can not be displayed! septanla Ubuntu 1 04-24-2005 12:01 PM
Making colors not so bold in rxvt? TheVrolok Linux - Newbie 1 10-14-2004 07:55 AM
how do bold and italic in vim? lugoteehalt Linux - Newbie 3 04-19-2004 08:17 AM


All times are GMT -5. The time now is 02:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration