weird copy-paste on chromebook

513 views
Skip to first unread message

nac...@google.com

unread,
Oct 25, 2017, 5:53:22 AM10/25/17
to chromium-hterm
1) Select with the cursor something to copy.
2) shift-ctrl-V to paste.

Often one or both of the following occurs:
a) only part of the highlighted text from 1) was copied (and pasted)
b) after the text has been pasted, everything above in the screen is now highlighted

Any ideas?
Thanks.

Mike Frysinger

unread,
Oct 25, 2017, 10:39:53 AM10/25/17
to Nachum Goldstein, chromium-hterm
can't say i've seen this.  when you paste, the selection is reset.

please export your settings via the options page (save backup) and attach here.  it will include your saved ssh connection settings, so if you don't want those shared, edit the file first to remove them.
-mike

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/395990e3-3219-4f0a-85d0-a059488c3483%40chromium.org.

Nachum Goldstein

unread,
Oct 26, 2017, 4:03:57 AM10/26/17
to Mike Frysinger, chromium-hterm
attached, thanks.
Secure Shell Preferences Backup (1).json

Mike Frysinger

unread,
Oct 26, 2017, 4:30:47 AM10/26/17
to Nachum Goldstein, chromium-hterm
what OS are you using here ?

are you using screen or tmux ?  does it reproduce w/out them ?  looking for a way to narrow this down.

you could try disabling "enable-clipboard-notice" and see if the latency there is confusing things.
-mike

Nachum Goldstein

unread,
Oct 26, 2017, 5:13:30 AM10/26/17
to Mike Frysinger, chromium-hterm
ChromeOS Version 60.0.3112.114 (Official Build) (64-bit)

I use tmux. This happens whether or not I am in a tmux sesison.

disabled "enable-clipboard-notice", reloaded the secure-shell app, reconnected.
Did not run tmux.
Copied a single word with double-click.
Pasted it with shift-ctrl-V
Everything above in the terminal is now selected.



Nachum Goldstein

unread,
Nov 1, 2017, 9:27:21 AM11/1/17
to Mike Frysinger, chromium-hterm
Hi.

Any other ideas on this?

Thanks.

Mike Frysinger

unread,
Nov 1, 2017, 10:35:20 AM11/1/17
to Nachum Goldstein, chromium-hterm
sorry, but i still haven't been able to reproduce this on any Linux or CrOS system.  copying & pasting is an operation i perform frequently.
-mike

Ihor Dvoretskyi

unread,
Nov 1, 2017, 10:52:39 AM11/1/17
to Mike Frysinger, Nachum Goldstein, chromium-hterm
+1 Mike, I also don't have these issues on my Chromebook.

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/CAAbOScmtxv1rd1NqyaYLnMo8qcRg8BDqSSuG_vxknj2ZPDNLfg%40mail.gmail.com.

Nachum Goldstein

unread,
Nov 1, 2017, 11:26:39 AM11/1/17
to Ihor Dvoretskyi, Mike Frysinger, chromium-hterm
I attached a screencastify recording.

It only occurs when I am full-size on an ancillary screen.



To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hterm+unsubscribe@chromium.org.
Nov 1 2017 5-24 PM.webm

Nachum Goldstein

unread,
Nov 1, 2017, 11:26:39 AM11/1/17
to Ihor Dvoretskyi, Mike Frysinger, chromium-hterm
I attached a screencastify recording.

It only occurs when I am full-size on an ancillary screen.


On Wed, Nov 1, 2017 at 4:52 PM, Ihor Dvoretskyi <ihor.dv...@gmail.com> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hterm+unsubscribe@chromium.org.
Nov 1 2017 5-24 PM.webm

Mike Frysinger

unread,
Nov 1, 2017, 11:40:37 AM11/1/17
to Nachum Goldstein, Ihor Dvoretskyi, chromium-hterm
that's tmux+vim.  you said earlier you could reproduce it w/out tmux ?  can you should a session where it happens in a simple setup ?

do you see anything under ctrl+shift+j ?

btw, it's not that i haven't believed you were having troubles, it's just that i haven't been able to recreate and haven't been able to narrow down a possibility from staring at the code.
-mike

Nachum Goldstein

unread,
Nov 2, 2017, 7:32:12 AM11/2/17
to Mike Frysinger, Ihor Dvoretskyi, chromium-hterm
Video attached.

The ctrl+shift+j console reported:
[Deprecation] The behavior that Selection.addRange() merges existing Range and the specified Range was removed. See https://www.chromestatus.com/features/6680566019653632 for more details.
hterm.Screen.expandSelection @ nassh_deps.concat.js:9527
hterm.Terminal.onMouse_ @ nassh_deps.concat.js:14190

Nov 2 2017 1-30 PM.webm

Nachum Goldstein

unread,
Nov 6, 2017, 2:49:17 AM11/6/17
to Mike Frysinger, Ihor Dvoretskyi, chromium-hterm
Hi, any updates? Thanks.

Nachum Goldstein

unread,
Nov 9, 2017, 6:28:47 AM11/9/17
to Mike Frysinger, Ihor Dvoretskyi, chromium-hterm
Hi folks. How often should I ping this thread? :-)
Thanks.

Darcy Parker

unread,
Nov 9, 2017, 9:25:47 AM11/9/17
to chromium-hterm, vap...@chromium.org, ihor.dv...@gmail.com, nac...@google.com
Like others on thread have mentioned, I haven't reproduced this either and I use tmux/vim every day for hours.

I have no doubt you are having this problem, but it is probably one of those unfortunate situations where it is specific to your configuration.

Have you tried using a vanilla .tmux.config?

What version of `tmux` are you using? 
* You may know, but in v2.1 the configuration of the mouse changed and there were some problems people had with mouse issues/configuration for a little bit... OOTB, 
* Is it possible you're ssh'ing into a machine that is using a version before v2.1 or <= 2.3? (I had problems with the mouse interactions on some terminals with tmux v2.3 that is distributed with current Debian stable release.  So I always build tmux from src... https://github.com/tmux/tmux.  It's a wild guess... but I wonder if you are experiencing issues that are quirks in the version of tmux you are using that have been resolved in more recent versions? (even if you don't use Debian... you may be using an older version of tmux).  Try `tmux -V`.  If you build from src you'll see something like `tmux master` as the version... But if you are using Debian stable, you'll see something like `tmux 2.3`)

Given others can't reproduce your problem and tmux/vim are popular... there is a strong probability that it has something to do with the machine you are ssh'ing into... and/or your .tmux.conf.  Getting the latest version of Tmux (which has resolved many quirky mouse issues after changing in v2.1...) and a vanilla .tmux.conf would a good next step.  Then start adding options back in.  It could be challenging... but its a necessary step to get to the root cause when no one else has repeated your experience.

Pinging on this thread will likely not help until you are able to provide more info... or someone else can reproduce it and provide more insight to help find the root cause.
Hi, any updates? Thanks.

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.

Nachum Goldstein

unread,
Nov 9, 2017, 9:31:09 AM11/9/17
to Darcy Parker, chromium-hterm, Mike Frysinger, Ihor Dvoretskyi
Thanks very much Darcy, my machine has tmux 1.8
I will get and use the latest version.

Regards,

Nachum Goldstein

unread,
Nov 13, 2017, 6:55:01 AM11/13/17
to Darcy Parker, chromium-hterm, Mike Frysinger, Ihor Dvoretskyi
Installed latest tmux, but I don't think this is the issue, since it happened on a non-tmuxed session when the secure-shell was maximized in my 2ndary screen (attached via usb-C to my Pixel chromebook).

Please see the video and console output from Nov/2
Thanks.

Darcy Parker

unread,
Nov 13, 2017, 8:49:06 AM11/13/17
to chromium-hterm, darcy...@gmail.com, vap...@chromium.org, ihor.dv...@gmail.com, nac...@google.com
Sorry to hear it is still a problem for you.

Hopefully someone else can reproduce this or can give some ideas that lead to a resolution.  It's interesting that "It only occurs when I am full-size on an ancillary screen."...  I mentioned previously that I haven't seen this problem before and use ssh client with tmux/vim all the time... but I am using an older acer c720 and therefore not using usb-c or usb-c dock (I am assuming you are using a dock to get the extra displays?).  It seems unlikely but could this be some obscure bug with dock and/or specific to your Google Pixel?  I imagine there are lots of Googler's using the pixel with a dock and external keyboard/mouse (Maybe you should add some more notes about your setup and configuration in hopes someone else has an idea of what to try next.)

I watched your video - I don't doubt you have the issue... but it seems more info will be necessary to get traction on ideas that will lead to resolution.

Nachum Goldstein

unread,
Nov 13, 2017, 9:26:14 AM11/13/17
to Darcy Parker, chromium-hterm, Mike Frysinger, Ihor Dvoretskyi
Thanks.

It's a Google Pixel chromebook running Version 61.0.3163.123 (Official Build) (64-bit)

Connected from chromebook usb-C -> kanex adaptor -> DVI ->  HP Z24i 
No dock involved.

Is the following console output relevant?
[Deprecation] The behavior that Selection.addRange() merges existing Range and the specified Range was removed. See https://www.chromestatus.com/features/6680566019653632 for more details.
hterm.Screen.expandSelection @ nassh_deps.concat.js:9527
hterm.Terminal.onMouse_ @ nassh_deps.concat.js:14190

Mike Frysinger

unread,
Nov 13, 2017, 2:58:58 PM11/13/17
to Nachum Goldstein, Darcy Parker, chromium-hterm, Ihor Dvoretskyi
no, those warnings about addRange aren't relevant

i've tried connecting my pixelbook to an external monitor, moving Secure Shell there, maximizing it, and then doing the copy&paste on netconfig content as you showed.  it works as expected.  but i'm on R64 here rather than R61.

does it happen only when you press ctrl+v to paste ?  what if you right click the mouse or middle mouse paste ?

part of the trouble is that copy/paste & selection are handled by the browser and not hterm itself.  when you hit ctrl+v, hterm just tells the browser "paste now".
-mike

Nachum Goldstein

unread,
Nov 14, 2017, 2:14:40 PM11/14/17
to Mike Frysinger, Darcy Parker, chromium-hterm, Ihor Dvoretskyi
So I just updated my Chromebook and am now at:
Version 62.0.3202.82 (Official Build) (64-bit)

I did not know about right-click (on my Pixel two-finger-tap) for paste.
I'll try that for a while and see what happens, thanks!
Reply all
Reply to author
Forward
0 new messages