Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
17 Views

How to get COLORED print characters ?

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
Highlighted
New Contributor I
17 Views

Colored PRINT characters

0 Kudos
Highlighted
New Contributor I
17 Views

    

0 Kudos
Highlighted
Employee
17 Views

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

0 Kudos
Highlighted
Valued Contributor II
17 Views

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

 

0 Kudos