HP 3000 Manuals

Cursor And Window Movement Commands [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Cursor And Window Movement Commands 

Before you can edit text, you must be able to quickly and easily move the
cursor to the text you want to edit.  HP EDIT offers several commands
expressly for this purpose.  The commands in this category either move
the cursor or window of text when executed.  Most of these commands
accept a count to specify the number of text units to move.

Cursor Movement 

Cursor movement commands either move the cursor to another location
within the same text window or move the cursor to a specified location
within the file.  Cursor movement functions and their associated commands
are:

   *   Moving the cursor within a text window
              Forward Character
              Forward Word
              Forward Line
              Back Character
              Back Word
              Back Line
              Cursor To Top
              Cursor To Center
              Cursor To Bottom
              Tab

   *   Moving the cursor to a location anywhere in the file
              Beginning Of Line
              End Of Line
              Top Of File
              Bottom Of File
              Go To Column/Mark
              Go To Line/Mark

Moving within The Window.     

The commands in this group move the cursor to specific locations within
the current text window.  The text usually remains stationary when you
execute any of these commands.

The Forward Character command moves the cursor one character to the right
of its current location.  If the cursor is on the last character of the
line when you execute the command, the cursor moves to the first
character of the next line.  The Back Character command performs the same
action to the left of the current cursor location.  If the cursor is on
the first character of the line when you execute the command, the cursor
moves to the last character of the previous line.

The Forward Word command moves the cursor to the first character of the
word to the right of its present location.  If the cursor is on the last
word of the line when you execute the command, the cursor moves to the
first character of the first word on the next line.  The Back Word
command performs the same action to the left of the current cursor
location.  If the cursor is on the first character of the line when you
execute the command, the cursor moves to the last character of the
previous line.

Although considered cursor movement commands, the Forward Line and Back
Line commands also scroll the text, depending on the cursor position at
the time of execution.  If the cursor is at the top line of the window
and you execute the Back Line command, the text scrolls down one line.
If the cursor is at the bottom line of the window and you execute the
Forward Line command, the text scrolls up one line.

The Cursor To Top command moves the cursor to the top line of the window.
The Cursor To Center and Cursor To Bottom commands function similarly.

The Tab command, to which the Tab key is assigned by default, moves the
cursor to the next tab position.  The default value is 5 spaces.  You can
alter this value with the Tab Spacing parameter of the Set Options
screen.

You can also use the four terminal cursor keys to move the cursor to any
location on the screen.  You can also use these keys to move the cursor
from one window to another when there are two windows on the screen.
Refer to "Display And Keyboard Features" in chapter 2 for information
about permissible terminal keys.

Moving within The File.     

The commands in this group move the cursor to the specified location in
the file.  The text may remain stationary or may scroll, depending on the
position of the text within the window when you execute the commands.

The Beginning Of Line and End Of Line commands move the cursor to the
first and last characters of a line, respectively.  The text does not
scroll when you execute these commands.

The Top Of File and Bottom Of File commands move the cursor to the first
or last line of the file.  The commands eliminate the need for manual
scrolling to the top or bottom of the file.

The Go To Column/Mark and Go To Line/Mark commands serve a dual purpose.
You can use either command to move the cursor to a premarked text
location by preceding the command with a count, which HP EDIT interprets
as a mark number.  This function represents the Go To Mark portion of the
command.  You can also use the commands to move the cursor to a specific
column or line by not specifying a count before issuing the appropriate
command.  HP EDIT prompts you for a column or line number after you
execute the command.

Window Movement 

Window movement commands enable you to position the window to the desired
file location by scrolling the text.  Commands in this category are:

       Scroll Forward
       Scroll Backward
       Scroll Left
       Scroll Right
       Cursor Line To Top
       Cursor Line To Center
       Cursor Line To Bottom

The Scroll Forward and Scroll Backward commands enable you to display any
portion of a file.  The Scroll Forward command moves the cursor toward
the bottom of the file.  The Scroll Backward command moves the cursor
toward the top of the file.  You can scroll the default number of lines
or you can change the scroll size by preceding the command with a count.
The new scroll size remains in effect until you change it.
[REV BEG]

If text in a line or record is wider than 80 characters, the Scroll Left
and Scroll Right commands allow you to scroll horizontally to the
beginning or ending of a record.[REV END]

The three cursor line commands move the line where the cursor is
currently located to the top, center, or bottom of the current window.
The text scrolls with the cursor line.



MPE/iX 5.0 Documentation