SUPPORT > TIPS
Send us a question or comment

   

Mouse support for vi, vim, and emacs in SecureCRT®

If supported by the remote application, the mouse can be used to position the SecureCRT terminal emulator cursor within the emulation window. Using the mouse with remote applications such as vi/vim or emacs requires SecureCRT to be configured with the appropriate emulation settings to convince the remote editor/application that it should send Xterm escape sequences for mouse control.

  • On the Terminal / Emulation page of the SecureCRT Session Options dialog, set the emulation to Xterm.
  • Make sure the value of the Terminal type option in the Terminal / Emulation / Advanced category is not enabled.
  • If you made the above changes while you were already connected to the remote machine, reconnect to the remote machine in order for the remote system to be made aware of the current terminal configuration.

Once you have configured SecureCRT as described, you will need to set the corresponding mouse option within the remote application/editor.

For vi/vim, enter command mode by pressing the ESC key. Enter the following command:

:set mouse=a

For emacs, enter command mode by pressing Meta/ALT+X. Enter the following command:

xterm-mouse-mode

With mouse mode enabled, you can click with the mouse and position the cursor instead of using the arrow keys. You can also select text with the mouse, if supported by the remote application.

Was this information helpful?
Yes No
Thank you!
Send your comments and questions to VanDyke Software Support,
or join the discussion in the VanDyke Software Forums.
Can't find the answer you're looking for?
Ask VanDyke Software Support directly
and we will get back to you as soon as possible.
1.  Read or download one of our secure solutions white papers. 2.  Download a free
30-day evaluation copy of our products.
3.  Let us help define the right Secure Shell solution for your company. 4.  Subscribe to our What's New page for tips, solution ideas, and product news.