The following table provides the key bindings for single-line text entry areas in Unix/Linux.
Unix/Linux Single-Line Bindings | |
Ctrl-A | Move cursor to beginning of line |
---|---|
Ctrl-B | Move cursor backward one character |
Ctrl-C | Copy selected text to clipboard |
Ctrl-D | Delete next character |
Ctrl-E | Move cursor to end of line |
Ctrl-F | Move cursor forward one character |
Ctrl-H | Delete previous character |
Ctrl-K | Delete to end of line |
Ctrl-P | Paste primary selection at cursor |
Ctrl-U | Delete current line |
Ctrl-V | Paste clipboard at cursor |
Ctrl-W | Delete backward one word |
Ctrl-X | Cut selection to clipboard |
Alt-B | Move cursor backward one word |
Alt-D | Delete word |
Alt-F | Move cursor forward one word |
Home | Move cursor to beginning of line |
End | Move cursor to end of line |
Left | Move cursor left one character |
Ctrl-Left | Move cursor left one word |
Right | Move cursor right one character |
Ctrl-Right | Move cursor right one word |
Backspace | Delete previous character |
Ctrl-Backspace | Delete previous word |
Clear | Delete current line |
Shift-Insert | Paste clipboard at cursor |
Ctrl-Insert | Copy selected text to clipboard |
Delete | Delete next character |
Shift-Delete | Cut selected text to clipboard |
Ctrl-Delete | Delete next word |
Clicking with button 1 will move the cursor to that location. Double clicking will select the clicked-on word. Triple clicking will select the entire line. Button 1 is also used to select text by dragging the pointer over the text to select.
Clicking with button 2 will paste the primary selection into the line at the click location.
Button 3 will also select text, but the selected text is not copied to the primary selection register. Text selected in this manner can be saved to the clipboard just as a normal selection.
The following table privides the key bindings for single-line text entry areas in Windows. Note that the bindings are a subset of those available in the general purpose text editor.
Windows Single-Line Bindings | |
Ctrl-C | Copy selected text to the Windows clipboard |
---|---|
Ctrl-V | Paste the Windows clipboard contents at the cursor |
Ctrl-X | Cut selected text to the Windows clipboard |
Ctrl-Z | Undo last operation |
Backspace | Delete selected text, or the character to the left of the cursor if no text is selected |
Delete | Delete selected text, or the character to the right of the cursor if no text is selected |
Shift-Delete | Cut selected text to the Windows clipboard |
Ctrl-Delete | Delete to end of line |
Shift-Insert | Perform a "paste" from the Windows clipboard |
Home | Move cursor to the start of the line |
End | Move cursor to the end of the line |
The arrow keys move the cursor, and with Ctrl pressed the left and right arrow keys move the cursor word-by-word. Holding the Shift key while moving the cursor with the mouse or with other keys will select the intervening text.
The left mouse button is used to move the cursor by clicking, and to select text by dragging. In some windows, clicking with button 3 will bring up a menu containing entries for cut, paste, etc.