Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

How to get COLORED print characters ?

WSinc
New Contributor I
104 Views

This is a requirement for a special presentation I am giving..

 

Normally, PRINT statements give you white characters on a Black background.

Of course, one could probably change that to give different colored characters, but they would all be the same color.

 

What  I  am looking for is a way to display different characters of different colors on the same output screen.

Wondering if there is a special trick to accomplish that result ? ?

 

for example you might have numbers of a certain range be GREEN, while others of a different range could be RED.

 

Have any of you tried to do that ? I dont even know if that is possible.

0 Kudos
4 Replies
WSinc
New Contributor I
104 Views

Colored PRINT characters

WSinc
New Contributor I
104 Views

    

Eugene_E_Intel
Employee
104 Views

On Windows, see https://rosettacode.org/wiki/Terminal_control/Coloured_text#Intel_Fortran_on_Windows

Arjen_Markus
Valued Contributor III
104 Views

You might also have a look at the "foul" project - https://sourceforge.net/projects/foul

 

Reply