Date: Wed, 21 Jun 2000 18:45:04 +0200 From: Christoph Sold <so@server.i-clue.de> To: eric.boucher24@sympatico.ca Cc: freebsd-questions@FreeBSD.ORG Subject: Re: programming color in Fortran Message-ID: <3950F110.E9915F8B@i-clue.de> References: <3950E08A.4A0E9EB7@sympatico.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Boucher Eric wrote: > Hi, > > I don't know if it's the right place to put this kind of question, > because it's not related to FreeBSD. It's about Fortran. So , at least, > maybe someone could tell me where I can ask for that kind of questions. > > I wanted to know if there is a way to tell to fortran to write a > specific information in a differant color or highlighted, and than, in > the same file, writing differant information in another color, or back > to normal. > > For example, : > > write(69,'("This texte is normal")') > write(69,'("this texte is highlighted")') > write(69,'("This texte is normal again")') This depends on where you try to display or print the text. If the output goes to an ANSI terminal, some ANSI escape sequence will do the job. This sequence will show up as ugly ^]xy codes in print, thus better check if you're streaming to a terminal before you use this. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3950F110.E9915F8B>