03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.4 Basic Editing Commands <strong>CP</strong>/M 3 User's Guide<br />

While the examples in the previous section show the memory buffer and the position<br />

of the character pointer, the examples in this section show how the screen looks<br />

during an editing session. Remember that the character pointer is imaginary, but you<br />

must picture its location because ED's commands display and edit text in relation to<br />

the character pointer.<br />

6.5.1 Moving the Character Pointer<br />

To move the <strong>CP</strong> to the end of a line without calculating the number of characters,<br />

combine an L command with a C command, L-2C. This command string accounts<br />

for the sequence at the end of the line.<br />

Change the C command in this command string to move the <strong>CP</strong> more characters<br />

to the left. You can use this command string if you must make a change at the end<br />

of the line and you do not want to calculate the number of characters before the<br />

change, as in the following example:<br />

1-. *T<br />

1: Emily Dickinson said,<br />

1: *L-7CT<br />

said,<br />

1: *<br />

6.5.2 Displaying Text<br />

A T command types from the <strong>CP</strong> to the end of the line. To see the entire line, you<br />

can combine an L command and a T command. Type Olt to move the <strong>CP</strong> from the<br />

middle to the beginning of the line and then display the entire line. In the following<br />

example, the <strong>CP</strong> is in the middle of the line. OL moves the <strong>CP</strong> to the beginning of<br />

the line. T types from the <strong>CP</strong> to the end of the line, allowing you to see the entire<br />

line.<br />

3: *T<br />

sense of living<br />

3: *0LT<br />

3: the mere sense of living<br />

3: *<br />

The command 0TT displays the entire line without moving the <strong>CP</strong>.<br />

6-18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!