![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
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 02:30 PM |
| write data into a text file in bold format | miltony | UNIX for Dummies Questions & Answers | 1 | 09-28-2005 08:21 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 |
| Bold Text? | Atama | UNIX for Dummies Questions & Answers | 4 | 04-12-2002 10:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
Give a "tput bold" as the statement before ur printf statement After printf statement if u no longer want the font to be bold , u can revert back to default settings by "tput sgr0" Check tput manual too ... tput provides a lot of text manipulations like making it bold, blinking, highlitimg, placing the cursor in a particular postion etc. Thanks, SNS |
|
||||
|
I think he wants to do it inside C. The ANSI escape sequences will do what you want. Code:
char ESC=27;
printf("%c[1m",ESC); /*- turn on bold */
printf("%c[0m",ESC); /* turn off bold */
Last edited by jim mcnamara; 08-24-2005 at 11:22 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|