Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28459 Discussions

How to get COLORED print characters ?

WSinc
New Contributor I
296 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
296 Views

Colored PRINT characters

0 Kudos
WSinc
New Contributor I
296 Views

    

0 Kudos
Eugene_E_Intel
Employee
296 Views

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

0 Kudos
Arjen_Markus
Honored Contributor I
296 Views

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

 

0 Kudos
Reply