Copying and pasting

You can copy selected text, screen, and scroll buffer into the Windows clipboard and paste the clipboard contents to the terminal window. You can also copy the text toΒ NotepadΒ bypassing the clipboard.

To select text area:

  1. Do one of the following:
    • Left-click at the beginning of the text you want to select, and drag your mouse; then release it at the end of the text.Β 
      RESULT: The selected text will be changed to a reverse color.
    • Left-click and release your mouse at the beginning of the text you want to select, then move your cursor to the end of the text to select; left-click while pressing the Shift key .
    • Double-click on the word you want to select.Β 
      RESULT: This will select the word on which the mouse cursor is located.
    • Quickly left-click three times on the line you want to select.Β 
      RESULT: This will select the whole line.Β 

      Note

      XshellΒ supports scrolled selection that is available in most Windows applications. You can do it by dragging the mouse cursor to the top or bottom of the terminal.

To select text area in column mode:

  1. Press theΒ AltΒ key.
  2. Left-click at the start of the text you want to select, while pressing the button, drag the mouse cursor, and then release it at the end position of the text.


To copy selected text to the Windows clipboard:

  1. Select the text you want to copy.
  2. Do one of the following:Β 
    • In theΒ EditΒ menu, clickΒ Copy.
    • In theΒ Toolbar, clickΒ Copy.
    • Press theΒ Ctrl+InsΒ key.

      Note

      You can paste the copied text to the terminal window as well as any Windows applications.

To copy selected text to text editor:

  1. Select the text you want to copy.
  2. In theΒ EditΒ menu, point toΒ To Text Editor.
  3. ClickΒ Selected Area.

    Note

    You can also copy the text in screen or scroll buffer. A Notepad window will automatically show up with the copied text. This feature does not copy the text into the clipboard.

To paste the clipboard contents to the terminal:


  1. Do one of the following:
    • In theΒ EditΒ menu, clickΒ Paste.
    • In theΒ Toolbar, clickΒ Paste.
    • Press theΒ Shift+InsΒ key.
    • Right-click on the terminal window. This works when you have selected theΒ Paste the clipboard contentsΒ option ofΒ Right-buttonΒ in theΒ GeneralΒ tab ofΒ OptionsΒ dialog box.

      Note

      The paste on right-click works the same way as the xterm program's paste function.

To configure xterm-like copy and paste:

  1. Open theΒ OptionsΒ dialog box.
  2. Click theΒ GeneralΒ tab.
  3. From theΒ Mouse - Right-button, selectΒ Paste the clipboard contents.
  4. Click theΒ EditΒ tab.
  5. SelectΒ Copy selected text to the clipboard automatically.
  6. ClickΒ OK.

    Note

    TheΒ xtermΒ program copies text to the clipboard automatically when the user selects text, and it pastes the clipboard contents to the terminal on mid-click.