Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Annonces
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

How to get COLORED print characters ?

WSinc
Nouveau contributeur I
720 Visites

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 Compliments
4 Réponses
WSinc
Nouveau contributeur I
720 Visites

Colored PRINT characters

0 Compliments
WSinc
Nouveau contributeur I
720 Visites

    

0 Compliments
Eugene_E_Intel
Employé
720 Visites

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

0 Compliments
Arjen_Markus
Contributeur émérite II
720 Visites

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

 

0 Compliments
Répondre