Re: Compiled with MS FORTRAN 5 my Program executes in colour but not with g95



les.denning@xxxxxxxxxxxxx wrote:
I am a well meaning amateur at this and a rusty one at that. Having
written the original source code a decade or more ago, not as a
computer programmer I hasten to add just an engineer who needed to do
some sums, when you wrote:
"Try whatever is the F77 extension name for passing a command to the shell.

I was at a loss and the code below is the best way I have to explain
my dilemma.
From my simple point of view the ANSI escape sequence was passed with
the WRITE statement not a command.
....

Yes, but there's a difference between ANSI.SYS and the present COLOR command. ANSI.SYS was a TSR that stayed in the background and "trapped" screen writes and looked at what was written to see if it was a command for it to do something. If so, it did its thing; if not it just passed the character(s) on to the next step in the process of writing an actual character to the display.

COLOR, otoh is a shell command at the user command line so when you write to standard output, it never "sees" the character string and so has no opportunity to do anything.

With this technique you could present each line of screen output with
a different colour regime should you so wish and still can with the
source code compiled to a 16 bit executable. For a reason I am
beginning to question I thought moving to a 32 bit executable would be
better and in some respects it is. Scroll bars without resorting to
SCROLLit.exe for one thing.

Everything has its price! :( I don't know the technical details of why there isn't ANSI.SYS support for 32-bit, only that for some reason there isn't. I'm sure others can probably address that...

I also am not sure whether my other suggestion of looking at the JPSoft Take Command or 4NT would be of use or not, but there are downloadable trial versions or I'm sure Rex would be glad to answer a specific question if you can't find it on one of their FAQ's...

I bet you are not used to coping with an old duffer like me!
....

Oh, I suspect I'm probably as old a duffer as you and you'll be surprised if you hang around how many of us are... :)

--
.



Relevant Pages

  • Re: circular dependency - some tools ?
    ... >>functions this circular dependency is. ... > You could look at the source code of depmod to see how depmod is ... I'm using modprobe to load my modules so on the command line ...
    (comp.os.linux.development.system)
  • Re: How can one distinguish an IDE/ATA(PI) drive from a SCSI drive?
    ... If you dig around in the source code, you'll find that the values are mapped and re-assembled into an OpenVMS device specification deep down at the bottom of the cdrecord.exe source code. ... You can lob SCSI commands at the device and retrieve this data yourself, but OpenVMS doesn't present this data to the user. ... The cdrecord.exe port that the HP folks provided includes mappings for these, and a command procedure wrapper. ...
    (comp.os.vms)
  • Re: run application
    ... >>>open any script file or pass any command line parameter. ... I list the source code messagebox.c and dialogboxindrect.c ... There may be some strange interaction between Windows, the console ...
    (microsoft.public.vc.language)
  • Re: [SLE] wipe, clean, etc
    ... >> I have our company's source code on the drive. ... >> Is there a simple command I can run to make sure that the data on the ... They actually sell magnets do that. ... What we do is dissemble the drive, remove the platters from the ...
    (SuSE)
  • Accesing structures data (getting lengthy!)
    ... > assignment statement just won't stand out amongst all the other ... > meaningless dummy variables that you have to keep track of. ... > comparitively easy to pick out of a long, boring, command line history, ... > original, for some reason, wraps me up in knots. ...
    (comp.soft-sys.matlab)