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

6.6 Advanced ED Commands<br />

The basic editing commands discussed previously allow you to use ED for all your<br />

editing. The following ED commands, however, enhance ED's usefulness.<br />

6.6.1 Moving the <strong>CP</strong> and Displaying Text<br />

The P (Page) Command<br />

Although you can display any amount of text at the screen with a T command, it<br />

is sometimes more convenient to page through the buffer, viewing whole screens of<br />

data and moving the <strong>CP</strong> to the top of each new screen at the same time. To do this,<br />

use ED's P command. The P command takes the following forms:<br />

nP, -nP<br />

where n is the number of pages to be displayed. If you do not specify n, ED types<br />

the 23 lines following the <strong>CP</strong> and then moves the <strong>CP</strong> forward 23 lines. This leaves<br />

the <strong>CP</strong> pointing to the first character on the screen.<br />

To display the current page without moving the <strong>CP</strong>, enter OP. The special character<br />

0 prevents the movement of the <strong>CP</strong>. If you specify a negative number for n, P pages<br />

backwards towards the top of the file.<br />

The n: (Line Number) Command<br />

When line numbers are being displayed, ED accepts a line number as a command<br />

to specify a destination for the <strong>CP</strong>. The line number command takes the following<br />

form:<br />

n:<br />

where n is the number of the destination line. This command places the <strong>CP</strong> at the<br />

beginning of the specified line. For example, the command 4: moves the <strong>CP</strong> to the<br />

beginning of the fourth line.<br />

Remember that ED dynamically renumbers text lines in the buffer each time a line<br />

is added or deleted. Therefore, the number of the destination line you have in mind<br />

can change during editing.<br />

6-20

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

Saved successfully!

Ooh no, something went wrong!