How windows handle the clipboard interface with Xming?
Asked Answered
K

1

42

My question comes from a problem:

I Use Xming on Windows 7 to connect to a Linux host (through PuTTY) in order to start and display a gnome-terminal. I have some troubles using the Windows clipboard:

  • Copy from Windows to Xming works well. (Ctrl-C then middle-click on Xming)
  • Copy from Xming to another Xming cession works with delay. (Selection on Xming then middle-click on the other Xming)
  • Copy from Xming to Windows works most of the time with delay. (Selection on Xming then Ctrl-V on Windows)

On Windows: I have to repeat the Ctrl+V many times before it passed my text. (<10 kBytes)

Note that firsts failing attempts don't past the previous clipboard content.

Note 2: If I use a VB script to paste the clipboard content I have no delay.

Set objHTML = CreateObject("htmlfile")
ClipboardText = objHTML.ParentWindow.ClipboardData.GetData("text")
path = "D:\Users\blanchj1\AppData\Local\Temp\clipboard"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(path, 2, true)
objFile.WriteLine ClipboardText
objFile.Close 

Note 3: If I paste through an application menu ex notepad++ -> edit -> paste, I still have this delay.

Note 4: If I paste the content with Ctrl+V a second time, I still have this delay.

Note 5: The delay seems proportional to the number of charters to paste.

So I suppose this delay comes from a windows issue. Is that a problem of characters-encoding conversion?

Who can explain to me how it works?

Kayser answered 9/12, 2014 at 11:8 Comment(4)
Same problem. I doubt it's Windows problem, when copying text from VMWare for example works fine...Princessprinceton
OK let's say that the clipboard format produced by Xming is correctly handled by VB script but not by Windows.Kayser
same issue. use mobaxterm it is much better.Banderilla
Stopping using Windows would be much better too... But my Boss just says me NO! So I also use Mobaxterm since a few years.Kayser
A
0

Your observation that the delay is proportional to the number of characters pasted should be expected, since each of those characters must be fed through the SSH terminal, a serial pipeline. Additionally, rendering those characters on your end takes some effort from Windows. I suspect that the reason that you see less delay with your VBScript paste operation is that the VBScript paste operation largely eliminates the user interface from the process, since the clipboard can deal with the characters, without having to figure out how to draw them.

Audiometer answered 25/5, 2019 at 20:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.