FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


TYPE

Syntax:

TYPE [ FILE [: <filename> ] ] [ <expression> [ : <expression> ] ]

TYPE [ SUB-PROGRAM [: <sub_prog_name> ] ] [ <expression> [ : <expression> ] ]

Function:

Types a range of lines either:

  1. from one of the files which makes up the program;

  2. from one of the sub-programs. When a sub-program is typed, FPT steps through the text of INCLUDE files.

FPT> TYPE

- without arguments, types the text at the current cursor position. The lines typed are from cursor-w1 to cursor+w2 where w1 and w2 are the range set by the WINDOW command;

FPT> TYPE range

- types the range of lines and moves the cursor to the end of the range. If a single line is specified, the cursor is moved to that line and the lines cursor-w1 to cursor+w2 are typed where w1 and w2 are the values set by the WINDOW command.

FPT> TYPE SUB-PROGRAM: <sub_prog_name> <range>

- types the range of lines from the specified sub-program and moves the cursor to the end of the range. The sub-program specified becomes the current scope for the commands UP, DOWN, TYPE, FIND and NEXT;

FPT> TYPE FILE: <file> <range>

- types the range of lines from the specified file and moves the cursor to the end of the range. The file specified becomes the current scope for the commands UP, DOWN, TYPE, FIND and NEXT;

If a name is specified without the keyword FILE or SUB-PROGRAM, it is interpreted as a file or as a sub-program so as to conform with the previous use of the command.

If a range is specified without a file or sub-program name, FPT types the range of lines from the current file or sub-program.

The range of lines is specified by two integer numbers separated by a colon, for example 200:220. The cursor is moved to the end of the range. If a single line number is specified, the cursor is moved to that line and FPT types the range of lines from cursor-w1 to cursor+w2, where w1 and w2 are the current window settings, specified by the WINDOW command.

Files may be specified using the current operating system defaults for the directory or path and the file name extension, or those set by the commands:

PRIMARY INPUT DIRECTORY

INCLUDE INPUT DIRECTORY

INPUT FILE NAME EXTENSION

PRIMARY INPUT FILE NAME EXTENSION

INCLUDE INPUT FILE NAME EXTENSION  etc.

The commands UP and DOWN move the cursor and type the lines from cursor-w1 to cursor+w2.

Where to use this command:

Operating system command line

No


Configuration file, config.fsp

No


Specification (FSP) files, *.fsp

No


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

No


Examples:


FPT> type file: massmat.for 1:10

FPT> t sub-prog: massmat 20:50

FPT> t 35

FPT> t 			! Re-types the current window

See also:

WINDOW

UP

DOWN


Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.