Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Escape sequences Compaq Visual FORTRAN 6.6 Win2K

Escape sequences Compaq Visual FORTRAN 6.6 Win2K

Escape sequences Compaq Visual FORTRAN 6.6 Win2K

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?

RE: Escape sequences Compaq Visual FORTRAN 6.6 Win2K


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 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.

The file then finishes with familiar lines like:-

dos=high, umb

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!

RE: Escape sequences Compaq Visual FORTRAN 6.6 Win2K

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?

RE: Escape sequences Compaq Visual FORTRAN 6.6 Win2K

Try putting the full pathname of ANSI.sys or something like



RE: Escape sequences Compaq Visual FORTRAN 6.6 Win2K

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?

RE: Escape sequences Compaq Visual FORTRAN 6.6 Win2K


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 (www.silverfrost.com)

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 !

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


White Paper - Implementing a Multi-Domain System
IoT systems are multi-domain designs that often require AMS, Digital, RF, photonics and MEMS elements within the system. Tanner EDA provides an integrated, top-down design flow for IoT design that supports all these design domains. Learn more about key solutions that the Tanner design flow offers for successful IoT system design and verification. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close