fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
UP and DOWN
Syntax:
UP [ <integer> ] DOWN [ <integer> ]
Function:
These commands are used interactively. They moves the interactive cursor upwards or downwards by the specified number of lines. fpt then types the code from w1 lines above the cursor to w2 lines below it, where w1 and w2 are the values set by the WINDOW command.
If no argument is specified, the cursor is moved upwards or downwards to display a range of w1+w2+1 lines so that there is a one line overlap between the last and the current section of code displayed.
If the start or end of the current file or sub-program falls within the window, the display is terminated at the start or end line. The choice of displaying a file or a sub-program is specified by the SET SCOPE, TYPE or FIND command.
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> win 5:5 | ! Sets window range |
| FPT> type file: massmat.for 1:10 | ! Displays lines 1:10 |
| FPT> d | ! Displays lines 10:20 |
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.