Re: Clear Screen



On Jul 30, 8:48 pm, Rosana Khan <khanros...@xxxxxxxxx> wrote:

I am having some trouble with clearing screen. I can't find any way to
do this in Fortran.
Documents fromhttp://www.ibiblio.orgsay that

WRITE(*,*) CHAR(27), '[2J'

statement will clear the screen. But it is not working for me. I used
CALL SYSTEM('cls') or CALL system('clear'); but I dont like the idea.
Is there any other way in Fortran to do that?

That code assumes ANSI control sequence support. You don't say what
OS (or compiler) you are using, but for Windows, Microsoft dropped
support for ANSI control in Windows NT and later 32-bit versions of
Windows (2000, XP, Vista). If the system calls you are using do what
you want, that's probably the easiest solution.

Another thing - How can I access printer from a Fortran program?

Here again it would be helpful to know the OS and compiler. Gone are
the days where one could just write to LPT: and print something.
Today's bitmapped printers require some sophisticated code to render
the output.

Intel Visual Fortran for Windows provides a sample application that
demonstrates how to do this - it includes a callable routine that will
use the Windows print mechanism to print the contents of a text file,
with lots of control over spacing, page length, font and more.

Steve

.



Relevant Pages

  • Re: DFPORT
    ... I work on a Windows XP platform. ... We normally use F77 Fortran and for this one problematic program we ... Since we also have the Intel Fortran compiler, we also had a lot of ... Windows Fortran comper (with appropriate libraries). ...
    (comp.lang.fortran)
  • Re: LAPACK
    ... >>what do I have to do for installing LAPACK on a pc with windows XP??? ... You need a Fortran compiler, unless you want to use CLAPACK. ... The speed of LAPACK is very dependent on the quality of your BLAS. ...
    (sci.math.num-analysis)
  • Re: Compiler query
    ... Windows 2000 is probably the worst Windows when it comes ... to the DOS Box. ... which compiles Fortran 77 as a subset of Fortran 90, ... -|I started off searching for a Fortran compiler to use - as the moment ...
    (comp.lang.fortran)
  • Re: "Visual" Fortran?
    ... > If you what a cheap/free FORTRAN compiler for Windows, ... > to beat the Watcom Compiler: ... > FORTRAN is likely to be a very poor choice. ... > Visual Basic 6.0 to do teh GUI from end, ...
    (comp.lang.fortran)
  • Re: who can help me? about OpenMP
    ... I know nothing about how Intel has implemented their compiler on ... Your best source of info on that is the Intel Fortran ... Fortran Compiler for Windows & Visual Fortran ...
    (comp.parallel)