Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Escape sequences Compaq Visual FORTRAN 6.6 Win2K

Status
Not open for further replies.

JackRnl

Chemical
Dec 20, 2005
6
I'm using Compaq Visual Fortran v6.6 under Win2K.

I have an old Fortran-77 program using ANSI escape-sequences to display colored texts (and lines) and predefined positions on the screen.

I created a quickwin project, put the statement "device=ansi.sys" in CONFIG.SYS but what happens is that all texts (including the escapesequences itself) are written at the screen, no colors, no positioning.

What do I need to do to make a quickwin app recognize the escape sequences?
 
Replies continue below

Recommended for you

Jack

I don't think any of the current windows OS use config.sys any more. On XP in C:\WINDOWS\system32 you will find the file CONFIG.NT the first few lines read as follows:-

REM Windows MS-DOS Startup File
REM
REM CONFIG.SYS vs CONFIG.NT
REM CONFIG.SYS is not used to initialize the MS-DOS environment.
REM CONFIG.NT is used to initialize the MS-DOS environment unless a
REM different startup file is specified in an application's PIF.
REM


The file then finishes with familiar lines like:-


dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40

So you could try placing "device=ansi.sys" in this file instead, as ansi.sys also exists in this same directory.

I hope this helps!
 
Thanks for the reply Johnhors.
You're right Win2K doesn't use AUTOEXEC.BAT and CONFIG.SYS anymore but AutoEXEC.NT and CONFIG.NT I found (now) in several places on the internet.

Unfortunally it doesn't solve the problem putting device=ansi.sys in config.nt , still the texts of the escapesequences are shown.

Could it be I should create a different type of project? If so, what type can I use?

 
Try putting the full pathname of ANSI.sys or something like
Code:
device=%SystemRoot%\system32\ansi.sys
 
xwb : I already tried that (but thanks anyway)

jhonhors: I looked at the comments about ansi.sys in the FTN95 forum but it didn't help. I tried ANSI.COM but it didn't work under Win2K.
BTW I've been using FTN77 since 1984 or so until 1992 and have a license from Salford (and also for Clearwin and C++). I wonder it is still on the market allthough I liked the speed and ease of use much compared to others like MSFortran and Lahey Fortran.
Why do YOU still use FTN95?
 
Jack

Like you I've been using Salford fortran compilers since the early 80's and soon learnt that they were much more capable than those available on mainframes and unix workstations (at the time). I have looked at other PC based compilers, but always found them wanting compared to Salford, so I have stayed faithful to them for over 20 years. Earlier this year sales and support were handed over to silverfrost (
I find FTN95 + Clearwin meets 99% of my requirements for writing windows applications using OpenGL graphics, the remaining 1% is covered by direct calls to the windows API. My source code is 100% FTN95 fortran. The applications I write have over 210,000 lines of source code.

I have never learnt C or C++ (although I have tried C# since my eldest brother wrote a beginners book about it !) and ditched all forms of Basic in the late 70's, so whilst I can create true windows apps with FTN95, I shall continue to do so !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor