Editing Text

The cut, copy, and paste operations allow you to move or copy text within a text edit pad, from one pad to another, or between a text edit pad and another application. These operations store text in either a clipboard or a named file.

The clipboard used for editing operations stores the result of one cut or copy operation. Each time you cut or copy new text, the old text in the clipboard is replaced. All text edit pads share the same clipboard, so you can cut or copy text from one text edit pad and paste it into another. The contents of the clipboard are lost when you exit the program.

The clipboard is also used to exchange text between a text edit pad and other applications. In general, an application that can exchange text with xterm can also exchange text with a text edit pad.

Procedure 17: Cutting or Copying Text to the Clipboard

  1. Select the desired text.

    Result: The selected text is highlighted.

  2. Choose a cut or copy operation:

    1. To cut the text, press <Control>+x, left-click on the Cut button, or choose Edit > Cut.

      Result: The selected text is deleted from the text edit pad and placed on the clipboard.

    2. To copy the text, press <Control>+c, left-click on the Copy button, or choose Edit > Copy.

      Result: The selected text is placed on the clipboard. No change occurs to the text in the text edit pad.

Procedure 18: Pasting Text from the Clipboard

  1. Place the insertion point where the text should be pasted, or select the text to be replaced.

  2. Press <Control>+v, left-click on the Paste button, or choose Edit > Paste.

    Result: The text in the clipboard is inserted or replaces the selected text. No change occurs to the text on the clipboard. This text can be inserted again and again.