[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 3.2 Cutting and pasting

You can cut or copy a piece of text that you select, from anywhere on text window; not just from the input lines but also from the output text in black.

To select the text, you can drag the cursor with the mouse while you keep its left button depressed, or you can hold the `shift` key with one finger, while you move the cursor with the mouse or with the arrow keys.

Once you have selected the text, you can either cut it, with `Ctrl-x`, or copy it to an internal buffer, with `Ctrl-c`. Instead of those key combinations, you can also use two options that appear inside the `Edit` menu.

The text that has been cut or copied more recently can be pasted anywhere, even in the output fields, using `Ctrl-v` or an option in the `Edit` menu.

There is a command similar to ‘`cut`’, called ‘`kill`’ (`Ctrl-k`, with two major differences: it only works in input fields (blue or green) and instead of cutting a text that was selected, it will cut all the text from the cursor until the end of the input line where the cursor is. The command ‘`Clear input`’ (`Ctrl-u`) is similar to ‘`kill`’, but it will cut the whole input line.

To paste the last text that you have cut with either ‘`kill`’ or ‘`clear input`’, you should use the ‘`yank`’ command, `Ctrl-y`. If you prefer, you can use entries in the `Edit` menu to kill, clear input and yank.

[ << ] | [ >> ] |  |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

This document was generated on June 7, 2020 using makeinfo.