Version 6.3.13 for UNIX
 —  Terminal Commands  —

%C - Copying Contents of Page Buffer

%C

This terminal command is used to copy the contents of the page buffer to the next available lines in the Natural source work area.

The page currently displayed by Natural will be copied into the Natural source work area. The page content will be written to the next free location in the source work area, where it can be modified using the Natural program editor.

To clear the source work area before copying the page, the %Z terminal command may be used.

Notes:

  1. %C should not be used in an editor session. Modifications made to the source area outside of editor content are not recognized by the editor.
  2. The page buffer (the logical output from Natural) is not necessarily the same as the screen buffer which is displayed on the screen.

Example:

DEFINE DATA LOCAL
1 I (I2)
END-DEFINE
FOR I = 1 TO 10
  WRITE I
  SET CONTROL 'C'
END-FOR
END

Top of page