Version 6.3.8 for Windows
 —  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.
  3. The program editor will show the new lines at once, if it has the input focus when %C is executed. If the program editor does not have the input focus, the %C changes will not be displayed; the changed source work area has to be re-loaded with the EDIT command.

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