Coder Social home page Coder Social logo

Comments (7)

rpwoodbu avatar rpwoodbu commented on September 23, 2024

I think I've observed the same behavior. It isn't always the case, though. It may have started after I switched to using the latest "stable" release of hterm. It is almost certainly an hterm bug; I have written no code regarding copy/paste behavior. I wonder if you can repo using Secure Shell.

from mosh-chrome.

AlexisEvo avatar AlexisEvo commented on September 23, 2024

I've been using the Secure Shell app for about a year now, daily, for hours at a time and have never encountered the problem before. If the hterm is the issue, then I would imagine it's a newer version of hterm than the one used in Secure Shell on Chrome Webstore.

Even restarting the app doesn't fix it. Haven't tried rebooting the Chromebook.

Thanks for all the work writing this app though. I love Mosh and have wanted a NaCl version on my Chromebook for a while. Until now I've been using an Arch chroot inside CrOS to use mosh, which works okay, but native is always better.

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on September 23, 2024

That is indeed quite interesting. I'm observing this behavior right now in all my Mosh windows on Ubuntu LTS. The selection buffer works (which is of no use to Chrome OS users), but the text doesn't make it into the clipboard, in spite of the little scissors icon popping up (as you note). I just tried running Secure Shell, and it works just fine.

I still think it is an hterm bug, but I'll need to see which version they're using, and if I need to upgrade (or even downgrade).

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on September 23, 2024

I wonder if this might actually be a bug with Chrome. I can't repro on my machine at home, which is running Chrome Stable (I had to revert due to some Chrome X11 bug that affected only this machine), but my machine at work is running Chrome Beta, and it was broken there all week. I see you were running Beta. Try seeing if you can repro on Stable (although I don't recommend reverting your Chromebook to Stable, as that is a royal pain; try using regular Chrome on another platform).

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on September 23, 2024

I have tried this using Chrome Stable on a Mac, and it works fine. I've tried building with a newer hterm which does have some changes to the copying code, but alas, it still fails on Beta versions. This is looking more and more like a Chrome bug. It doesn't affect Secure Shell, though, which may be because it is not a packaged app like Mosh.

@sbc100 any thoughts?

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on September 23, 2024

I just noticed this: hterm is spitting this out onto the JS console whenever I try to copy on Chrome 34:

We don't execute document.execCommand() this time, because it is called recursively.

Some of the recent changes to hterm seem related to trying to fix that.

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on September 23, 2024

Fixed in SHA eeda945, simply by updating to hterm 1.34.

OK, I thought I was trying a newer release of hterm earlier today, but my build script led me astray (that's fixed in SHA 908df8c). So actually updating to a newer hterm fixed it.

from mosh-chrome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.