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.5 Combining ED Commands <strong>CP</strong>/M 3 User's Guide<br />

To verify that an ED command moves the <strong>CP</strong> correctly, combine the command<br />

with the T command to display the line. The following example combines a C<br />

command and a T command.<br />

2: *8CT<br />

ecstasy in living -<br />

2: *<br />

4: *B#T<br />

1: Emily Dickinson said,<br />

2: "I find ecstasy in living -<br />

3: the mere sense of living<br />

4: is joy enough."<br />

1: *<br />

6.5.3 Editing<br />

To edit text and verify corrections quickly, combine the edit commands with other<br />

ED commands that move the <strong>CP</strong> and display text. Command strings like the one<br />

that follows move the <strong>CP</strong>, delete specified characters, and verify changes quickly.<br />

1. *15C5D0LT<br />

1: Emily DicKinson,<br />

1: *<br />

Combine the edit command K with other ED commands to delete entire lines and<br />

verify the correction quickly, as follows<br />

1: *2L2KB#T<br />

1: Emily Dickinson said,<br />

2: "I find ecstasy in living -<br />

1 : *<br />

The abbreviated form of the I (insert) command makes simple textual changes. To<br />

make and verify these changes, combine the I command string with the C command<br />

and the OLT command string as follows. Remember that the insert string must be<br />

terminated by a CTRL-Z.<br />

1 : *20Ci to a f riend ^Z0-LT<br />

1: Emily Dickinson said to a friend,<br />

1: *<br />

6-19

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

Saved successfully!

Ooh no, something went wrong!