# Mouse

## VT window

Mouse wheel
  This package supports mouse wheel button. Also, a user can send cursor key sequences as the mouse wheel rotating when the application cursor mode is enabled by starting vi or less command.
Mouse wheel on title bar
  The value of transparency can be temporarily changed by moving the mouse wheel on the title bar (NOTE: This value can not be recorded).
  When active status of the window is changed, the value of transparency switches to set value.
Dragging with the left button
  Selects text, and copies it to the clipboard.
Dragging with the left button while pressing the Alt key
  Selects text in a rectangular region of the screen, and copies it to the clipboard.
Double clicking the left button
  Selects a word, and copies it to the clipboard.
Triple clicking the left button
  Selects a line, and copies it to the clipboard.
Dragging with the right button
  Selects text, copies it to the clipboard, and then sends it to the host.
  It is effective when both DisableMouseRButtonPaste and SelectOnlyByLButton are disabled.
Clicking the right button
  Sends text in the clipboard to the host.
  It is effective when DisableMouseRButtonPaste is disabled.
Double clicking the left button on the title bar
  The behaviour is changed according to the "Term size = win size" setting.
  On
    Maximize window. If the window is already maximized, restore to the original size.
  Off
    If the window size (real screen size) is not equal to the terminal size (logical size of the terminal), resizes the window to the terminal size. A further double clicking restores the original window size.
Clicking the left button while pressing the Ctrl key
  If the menu bar is hidden, the pop-up menu appears. To hide the menu bar, check the Hide menu bar option in the [Setup] Window dialog box.
Dragging the window by the left button while pressing the Alt key
  Moves the window, if the title bar is hidden. To hide the title bar, check the Hide title bar option in the [Setup] Window dialog box.
Clicking the right button while pressing the Alt key
  Minimizes the window, if the title bar is hidden.
Dragging a text file and dropping it into the window

Displaying Confirmation Dialog
  When ConfirmFileDragAndDrop is on
    Dialog is shown after dropping
    However, when "Do not display this dialog, next drop" is checked on the dialog, the dialog is not shown. Next, the dialog can be shown by using CTRL key pressing.
  When ConfirmFileDragAndDrop is off
    When one file is dropped, the action is done without dialog displaying. The default action is Send File (Paste content of file).
    When one or multiple folders are dropped, the action is done without dialog displaying. The default action is Paste Filename.
    The dialog is shown other than these(multiple files/a file and folder). In this case, the dialog can be shown by using CTRL key pressing.
Dialog
  When the file and folder is dropped, the action can be determined.
  SCP
    The file is sent with SCP method.
    On SSH2 connection, this menu can be selected with the file.
    dest
      Specify the destination path.
      The path is treated as home directory when dest is empty.
      NOTICE: The "~" may not be used in some cases of remote OS and shell.
  Send File (Paste content of file)
    The file content is sent(pasted) into the terminal.
    When the file is dropped, this menu can be selected with the file.
    Binary
      When this option is checked, the file content is transmitted as it is.
      When this option is not checked, KANJI and new line code are converted.
  Paste Filename
    A file name and folder name is pasted.
    Escape
      When this option is checked, below processing is done.
      - The path delimiter is changed from "\" to "/".
      - " ;&()$!`'[]{}#^~" characters are escaped with "\".
    Separator is Space
      When multiple files are dropped, the file delimiter is space.
    Separator is NewLine
      When multiple files are dropped, the file delimiter is new line.
  Do this for the next N files
    When this option is checked, remaining files and folders are processed the same way.
  Do same process, next drop
    The dialog setting is recorded into memory, and then the setting is reused by using next action. When the dialog is shown, the dialog setting is update. Otherwise same action is done without confirmation. There are no configuration items and they are not saved file (TERATERM.INI).
    The type of processing (SCP/Send File/Paste Filename) is recorded.
  Do not display this dialog, next drop
    When this option is checked, the dialog is not shown on next file dropping and the action is done without confirmation.
    This option can be used when ConfirmFileDragAndDrop is off.
    This option is a different setting from ConfirmFileDragAndDrop, and then the option can not be saved by using [Setup] Save Setup.
    For example, when "Do same process, next drop" and SCP are selected, a folder is dropped. Next, when the action can not be done(needing confirmation) or dropping by using CTRL key pressing, the dialog is shown.

  item | read from / write to | condition of write
  --- | --- | ---
  Drop type (SCP/Send File/Paste Filename) | Configuration of dialog (on memory) | When "Do same process, next drop" is "on" and proceeded.
  SCP dest | Configuration of Tera Term (ScpSendDir of TERATERM.INI) | When Drop type is "SCP" and proceeded.
  Send File Binary | Configuration of Tera Term (TransBin of TERATERM.INI) | When Drop type is "Send File" and proceeded.
  Paste Filename Escape Separator (Space/NewLine) | Configuration of dialog (on memory) | When Drop type is "Paste Filename" and proceeded.
  Do this for the next N files | none |
  Do same process, next drop | Configuration of dialog (on memory) |
  Do not display this dialog, next drop | Configuration of dialog (on memory) |

Dragging with the middle button, Clicking the middle button
  These actions are no longer supported.

## TEK window

Dragging with the left button
  Selects a portion of the screen.
Clicking the right button
  Same as VT window.
Clicking the left button while pressing the Ctrl key
  Same as VT window.