• Aucun résultat trouvé

SYNTAX (cu) Moves the cursor up one line

Dans le document '11 Advanced CRT-Oriented (Page 112-119)

COMMAND LINE INVOCATION

SYNTAX (cu) Moves the cursor up one line

Command Dictionary-8500 Series ACE Users Move cursor up

SYNTAX (cu) Moves the cursor up one line.

[count](cu) Moves the cursor up the specified number of lines.

EXPLANATION

The (cu) command moves the cursor toward the top of the screen. If the cursor is already at the top of the screen, the cursor will wrap around to the bottom of the window or to the last line of a partially filled window, remaining in the same column position. The window remains unchanged.

(de)

Delete characters Command Dictionary-8500 Series ACE Users

SYNTAX

(mark)(motion)(dc) Deletes the characters between the mark and the cursor.

(dc) Deletes the character at the cursor.

-(dc) Deletes the character preceding the cursor.

[count](dc) Deletes the specified number of characters including and following the cursor.

Deletes the specified number of characters preceding the cursor.

Deletes characters including and following the cursor. The number of characters is determined by the length of the last string found with the F or R command. If no prior F or R command has been used, the >(dc)

Deletes the characters from the cursor to the end of the current line. The end-of-line character is not deleted.

Deletes the characters between the cursor and the beginning of the current line.

EXPLANATION

The (dc) command has two forms: block deletion and simple deletion.

Block Deletion. When you enter (mark)(motion) as a parameter, all characters between and including the mark and the cursor are deleted when you enter the (dc) command. The cursor's position in the file is remembered by the editor and an at-sign (@) is displayed at the cursor position. (The at-sign (@) is configurable and can be changed using the configurator. Refer to the Technical Notes section of this manual for information regarding the configurator.) Then when you enter the (dc) command, all text between and including the cursor position and the @ (at-sign) is deleted from the window. If the two cursor positions are not contained in the window, and if the query option is on, the editor asks you to confirm the deletion by displaying the following message:

DELETE REQUESTED. ENTER "Y" TO ACKNOWLEDGE:

Any response other than "Y" or "y" bypasses the deletion. If you enter a "Y" or "y", the text is

(de)

Command Dictionary-8500 Series ACE Users Delete characters

Simple Deletion. The second form of the (de) command deletes the specified number of characters before or after the cursor. A positive count deletes the specified number of characters including and following the cursor. A negative count deletes the specified number of characters preceding the cursor.

Two adjacent lines can be concatenated by deleting the end-of-line character of the first line.

Any characters that are deleted by a single (de) command are saved in a buffer. The most recently deleted text can be restored with the U (undelete) command.

You can combine the F command with the (de) command to find and delete text:

F{string}(ESC) « de) Find and delete text.

EXAMPLE

0000000ADEE62023ACDB83499D9FDDACBCDFEDCA-

111131422748773094477A6636CAABBEE87C5DDA-

~C8335198F8E77ABCE5DFA7EFA6285D74C65AA84- 17DEC8294117AC7EFEAFECBDA63802F8E7AEE83B-

7372958790A87698F987E556EFFF76897CE98798-A001 00011 ENTER COUNT/COMMAND COUNT: COMMAND:

To delete 25 characters from the cursor toward the end of the file, enter:

25(de)

The characters are deleted and the following window is displayed:

0000000ADEE62023ACDB83499D9FDDACBCDFEDCA- 111131422748773094477A6636CAABBEE87C5DDA-

,A6285D74C65AA84- 17DEC8294117AC7EFEAFECBDA63802F8E7AEE83B-

7372958790A87698F987E556EFFF76897CE98798-A001 00011 ENTER COUNT/COMMAND COUNT:25 COMMAND:

(de)

Delete characters Command Dictionary-8500 Series ACE Users

This paragraph-of text is the one~

that I want to delete.~

This paragraph is not going to be deleted. It~

will remain in the file.~

AOOl 00015 ENTER COUNT/COMMAND COUNT: COMMAND:

If you want to delete the paragraph or block of text that starts with the cursor, first enter the (mark) command. The editor then displays an at-sign "@" at the cursor position, and displays a prompt message on the status line:

This paragraph@of text is the one~

that I want to delete.~

This paragraph-is not going to be deleted. It~

will remain in the file.~

AOOl 00015 ENTER MOTION COUNT: COMMAND:

Move the cursor to the end of the text that you want to delete, and enter the (de) command. The following window is displayed:

Thi s paragraph~

1s not going to be deleted. It~

will remain in the file.~

AOOl 00015 ENTER COUNT/COMMAND COUNT: COMMAND:

(dl)

Command Dictionary-8500 Series ACE Users Delete lines

SYNTAX (dl) Deletes the current line.

-(dl) Deletes the preceding line.

[count](dl) Deletes the current line and the following count-1 lines.

-[count](dl) Deletes the specified number of lines preceding the current line.

/(dl) Deletes the current line and all the following lines to the end of the file.

-/(dl) Deletes all the preceding lines.

EXPLANATION

The (dl) command moves the cursor to the beginning of the current line and then deletes the specified number of lines forward or backward from the current cursor position. If you specify a positive count, the lines are deletedtowardtheendofthefile.lfyou specify a negative count, the lines are deleted toward the beginning of the file.

For a negative count, if count exceeds the number of lines between the cursor and the beginning of the file, the cursor is moved to the first line of the file.

For a positive count, if count exceeds the number of lines between the cursor and the end of the file, the cursor is moved to the last line of the file. The lines deleted by the (dl) command are removed from the window. The deleted lines are saved in a buffer. The most recently lines deleted can be restored with the U (undelete) command.

If more than' a full page is to be deleted, and if the query option is ON, the editor asks you to confirm the deletion, by displaying the following message:

DELETE REQUESTED. ENTER "Y" TO ACKNOWLEDGE:

If you enter a "Y" or "y", the deletion is performed. Any other response bypasses the deletion.

The (dl) command causes physical column one to be displayed in the leftmost column of the window.

(dl)

Delete lines Command Dictionary-8500 Series ACE Users

EXAMPLE

Portland""

.§eattle""

Vancouver""

Tacoma""

Olympia""

AOOI 00015 ENTER COUNT/COMMAND COUNT: COMMAND:

To delete the 3 lines of text following and including the current line, enter:

3(dl)

The lines are deleted and the following window is displayed.

Portland'"

Qlympia'"

San Francisco'"

San Diego""

Los Angeles'"

AOOI 00015 ENTER COUNT/COMMAND COUNT:3 COMMAND:

To delete the current line and all of the following lines to the end of the file, enter:

/ (dl)

The rest of the file is deleted and the following window is displayed:

Anchorage'"

Sitka'"

Fairbanks'"

Victoria'"

!'ortland'"

AOOI 00011 ENTER COUNT/COMMAND COUNT:/ COMMAND:

Command Dictionary-8500 Series ACE Users Echo commands

EC

SYNTAX

EC Turns the echo option ON.

-EC Turns the echo option OFF.

EXPLANATION

The EC command is used to turn the echo option ON or OFF. When the echo option is OFF, if commands are being processed from a command file, no display is generated by the editor until all commands have been processed or until an error is detected. If the echo option is OFF, however, the effect of each subsequent command is shown in the status line and window as if the command had been entered by the user on the keyboard. After you enter the EC or -EC command, the respective message is displayed on the message line:

ECHO ON or ECHO OFF

The EC command affects command echoing only when a command file is being processed.

Dans le document '11 Advanced CRT-Oriented (Page 112-119)