changing fonts?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2009
Posts: 23
Reputation: Usura is an unknown quantity at this point 
Solved Threads: 1
Usura Usura is offline Offline
Newbie Poster

changing fonts?

 
0
  #1
May 14th, 2009
it is possible to change the colour of the font in the terminal by using come sort of code, not sure of the correct term, what im after is like cout << "hello" << endl; and hello would be bold or a different colour, can that be done?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,871
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 56
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso

Re: changing fonts?

 
0
  #2
May 14th, 2009
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 23
Reputation: Usura is an unknown quantity at this point 
Solved Threads: 1
Usura Usura is offline Offline
Newbie Poster

Re: changing fonts?

 
0
  #3
May 14th, 2009
thank you so much very quick reply also
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 23
Reputation: Usura is an unknown quantity at this point 
Solved Threads: 1
Usura Usura is offline Offline
Newbie Poster

Re: changing fonts?

 
0
  #4
May 14th, 2009
#include <iostream>

using namespace std;

int main()
{
for (int i = 31; i <= 37; i++)
{
cout << "\033[0;" << i << "mHello!\033[0m" << endl;
cout << "\033[1;" << i << "mHello!\033[0m" << endl;
}
return 0;
}


woot!
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 176
Reputation: dubeyprateek is an unknown quantity at this point 
Solved Threads: 22
dubeyprateek's Avatar
dubeyprateek dubeyprateek is offline Offline
Junior Poster

Re: changing fonts?

 
0
  #5
May 14th, 2009
I know I am. Therefore I am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC