Coloured terminal output from Fortran
I was just curious to print some of the error messages from fortran code in different color. So I ended up with this suggestion after doing little bit google search -
Color codes are:
print *, 'Test color print -> '//achar(27)//'[31m Red'//achar(27)//'[0m.'
Color codes are:
[90m=dark grey [30m=black
[91m=peach [31m=red
[92m=light green [32m=green
[93m=light yellow [33m=yellow
[94m=light blue [34m=blue
[95m=pink [35m=purple
[96m=light aqua [36m=aqua
[97m=pearl white
Comments
Post a Comment