Formated output from C
I would like to know if there is any way to create some nice formatted output (like bold text) to the console in C. I have played a little with ncurses before but that creates a new "windows" which is destroyed when the program dies.
Regards. |
in linux you use escape codes, youse the termios structure and set: c_oflag |= OPOST for output processing, and then (i believe) you can just write your standard escape sequences to stdout:
http://www.faqs.org/docs/Linux-HOWTO...CAPE-SEQUENCES |
Wasn't the site at that url just talking about changing the bash prompt? How would I do if I wanted to use something like printf and get output in bold?
|
Run this program and see if you can learn anything from it:
Code:
#include <stdio.h> |
All times are GMT -5. The time now is 12:55 AM. |