Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

How to get COLORED print characters ?

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

Colored PRINT characters

0 Kudos
WSinc
New Contributor I
795 Views

    

0 Kudos
Eugene_E_Intel
Employee
795 Views

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

0 Kudos
Arjen_Markus
Honored Contributor II
795 Views

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

 

0 Kudos
Reply