My host machine is Windows, but I'm working in Linux virtualbox machine over ssh from mintty in MSYS2 environment. As you may know, in mintty you copy via C-insert and paste via C-S-insert. When I ssh
from mintty to my linux guest and open in it Emacs (emacs-nox
) I can paste with default shortcut for mintty, it triggers Emacs function xterm-paste
. My problem is that I can not find way to copy, there's no xterm-copy
function at all. Also there's no X so I can not use xsel as I used before.
So my question is how to copy to mintty clipboard from terminal emacs, is there any way? I always had problems with all those clipboard possibilities and can not figure it out.
M-w
) and paste from (C-y
) the clipboard, in the same manner as you do when working inside Emacs.nw
option?-nw
, it cannot use X on the windows side anyways unless you install Cygwin/X or the like. But it has to be a version with X11 enabled, not emacs-nox. Only the X11 part gives the ability to cut'n'paste from/to a GUI terminal (xterm, mintty etc.)