HP 3000 Manuals

Open Window [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Open Window 

Purpose 

Splits the HP EDIT screen into two text windows.

Default Syntax 

W

Description 

This command establishes another text window at the cursor position.  The
command enables you to view two different portions of the same file [REV
BEG]or two different files, and then edit one or both windows.[REV END]
This feature is useful in performing cut and paste operations or in
visually joining two distant portions of a file for comparison or
reference purposes.

Command Process 

When you execute the command, HP EDIT does the following:

   *   Opens another text window at the cursor position

   *   Displays the new scroll size at the top of the screen

When HP EDIT opens a new window, it displays the header line of the new
text window.  HP EDIT also shows the scroll size for the new window on
the message line.  The scroll size is determined by the number of lines
in the window minus one.  For instance, if you open another window at the
fifth line from the bottom of the screen, HP EDIT displays Scrollsize set 
to 4 on the message line.  [REV DEL]

You can change the new scroll size by executing the Set Options command
and changing the Scrollsize field to the desired number, or you can
specify a count and execute a scroll command.  When you close one of the
windows, HP EDIT restores the scroll size to its previous value.

Using The Windows 

You use the ^ and v keys to move from one window to another.  Positioning
commands only affect the window where the cursor is currently located.
The other window remains stationary.  Text altering commands affect both
windows if the text to be altered appears in both windows.

Sizing The Windows 

If the size of the windows are unsatisfactory, you can either:

   *   Close the new window using the Close Window command and then
       reopen a window at another location

     or 

   *   Adjust the window size using the Size Window command

Refer to the Close Window and Size Window commands for information about
command procedures.

Limitations 

You cannot [REV BEG]view or open more than two windows at one time.[REV
END] If you attempt to open another window while the screen is already
divided, the message Only two windows can be open at one time appears.

You can open another window beginning at any line between the second line
from the top or second line from the bottom of the current window.  If
you execute the command from the first or last line of the window, the
message Upper window too small or Lower window too small appears.  Of
course, it would be pointless to open another window at these positions
anyway, because no text could be displayed.
[REV BEG]

Procedures 
[REV END]

To split the screen into two windows: 

   1.  Move the cursor to the line where you want to position the header
       line of the new window.

   2.  Press the W key.  HP EDIT opens another text window and header
       line at the cursor position, and displays the new scroll size at
       the top of the screen.
[REV BEG]

To display a different file in the second window: 

When you open a second window, as described above, the same file will
appear in both windows.  To call a different file into one of the
windows:

   1.  Move the cursor to the window you want the other file in.

   2.  Execute the Text File [t] command.
[REV END]

Example 

To open another window nine lines from the top of the screen: 

   1.  Move the cursor to the ninth line.

   2.  Press the W key.  HP EDIT splits the screen into two windows as
       shown in the following example:

[FFN38]
Related Commands Close Window Size Window


MPE/iX 5.0 Documentation