HP 3000 Manuals

Fill Character [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Fill Character 

Purpose 

Duplicates a character a specified number of times.

Default Syntax 

[n] ESC '

where n is a count that represents the number of character columns you
want the character to fill using the remaining space on a line.  The
minimum useful value of n is 2 and its maximum value is 80.

Description 

This command duplicates the current character the specified number of
times and inserts the resulting string beginning at the current cursor
position.  Characters to the right of the cursor are shifted to the right
by n-1 characters to provide room for the fill characters.

The command is useful when you want to create a solid row of asterisks,
periods, or other special characters that extend across a line.  You can
also use the command to insert spaces in order to line up columns
correctly.

Procedure 

To extend a character a specified number of times: 

   1.  Move the cursor to the fill character.

   2.  Type a count representing the number of columns you want the
       character to fill including the column the character currently
       occupies.

   3.  Press ESC and the ' key.  HP EDIT fills the requested number of
       columns with the character.  If you specify a count greater than
       the number of free columns remaining on the line, HP EDIT displays
       Fill limited to X columns on the message line, where X equals the
       number of columns remaining on the line.  HP EDIT then fills the
       remaining columns with the character.

Example 

To extend the asterisk in the following line an additional 4 columns: 

            X Register Contents  *  Y Register Contents

   1.  Move the cursor to the asterisk as shown above.

   2.  Type 5 as the count and then press ESC and the ' key.  HP EDIT
       adds 4 asterisks to the original asterisk as shown:

            X Register Contents  *****  Y Register Contents

Related Commands 

       None



MPE/iX 5.0 Documentation