From owner-freebsd-questions Wed Jun 21 9:44:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id C86F737BBB3 for ; Wed, 21 Jun 2000 09:44:33 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id UAA01591; Wed, 21 Jun 2000 20:48:11 +0200 Message-ID: <3950F110.E9915F8B@i-clue.de> Date: Wed, 21 Jun 2000 18:45:04 +0200 From: Christoph Sold Organization: i-clue interactive GmbH X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: eric.boucher24@sympatico.ca Cc: freebsd-questions@FreeBSD.ORG Subject: Re: programming color in Fortran References: <3950E08A.4A0E9EB7@sympatico.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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