>>> Sorry if this is not a right place to post such question. I
>>> was just wondering if there is any way to change stdout
>>> messages' font type and setting from a C/C++ program in Linux
>>> environment? Any help or pointer to help is greatly
>>You've got limited capacity to do this, most terminals don't
>>support different fonts. You can change colors easily though.
>>You probably should read up on the terminal libraries. Take a
>>look at the curses manpage.
> Thanks for the tip, Donovan. I have one more question: Although
> it is hard to change to another font, how about using the same
> font but set it BOLD instead of regular? Is there anyway to do
> it in Linux terminal?
If you want ANY control over your output environment in a
terminal setting, you need to use an abstraction layer. Terminals
come in all shapes and sizes, and you cannot use <b>BOLD</b> in a
terminal that doesn't have <b>BOLD</b>
There are two conceptual ways to use abstraction layers -
terminfo and termcap.
Termcap is the old way, mostly deprecated and dependent on
Terminfo consists of a database of terminal types. You basically
lookup what codes correspond to what terminal attributes you
want to give text, and then send them to the terminal. Slang
libraries use terminfo, and the ncurses package is developed
along with terminfo. Use of one of these libraries is preferred.
In any case, ncurses comes with copious examples and
documentation, so you should be able, rather quickly, to
give output text any color or boldness you like.
If you run into problems the included documentation doesn't
address (which I think is pretty uncommon), you can ask here,
sometimes Thomas*ey, the ncurses maintainer, is reading.