Giter VIP home page Giter VIP logo

Comments (15)

acornejo avatar acornejo commented on August 15, 2024 1

I am trying to switch to chrome os, and using mosh is part of that effort. This is a big issue for me.

Could we reopen this issue? I am happy to contribute a patch for this.

from mosh-chrome.

acornejo avatar acornejo commented on August 15, 2024 1

I have implemented this in pull request
mobile-shell/mosh#899

I am a bit weary though, since I see there are multiple PR's on that project, some of them over a year old that have not received a single comment from the mantainers.

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on August 15, 2024

I hear what you're saying about feature parity with Secure Shell and the expectations of Chrome users. However, I've got bigger fish to fry right now. Maybe someone else will see this bug and volunteer their C++ chops to the cause. But I will say that this really needs to make it upstream. I'd consider cherrypicking the fix from upstream if an upstream Mosh release were a long way off, just to get it in a little sooner since it is a matter of feature parity with Secure Shell.

from mosh-chrome.

shirro avatar shirro commented on August 15, 2024

That makes sense.

One thing that has made it upstream is vt100 mouse mode. In Chrome Secure Shell I can select panes in tmux, drag borders to resize, move cursor in vim etc.

Would you consider cherry picking something like that? mobile-shell/mosh#461

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on August 15, 2024

keithw@ has suggested there will be a Mosh release this summer, so I'm inclined to wait instead of cherrypicking.

from mosh-chrome.

sunaku avatar sunaku commented on August 15, 2024

👍 @shirro this is a showstopper for me as well: I rely on OSC-52 to yank text to my system clipboard. 😱

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on August 15, 2024

At long last, there has been an upstream mosh release, which was brought in by SHA 89ac2b2. This should add the mouse support you (@shirro) mentioned. I do not know if it adds the osc52 thing. Let me know if it does, and I can close this out. This will hit the dev channel tonight.

from mosh-chrome.

sunaku avatar sunaku commented on August 15, 2024

@rpwoodbu Thanks! Under initial tests, the new mosh 1.2.5 seems to have fixed OSC-52. 👍

I need to test this on other machines though. I'll reply in (hopefully) a few days with an answer.

from mosh-chrome.

cgull avatar cgull commented on August 15, 2024

That's interesting. We definitely did not add support for OSC-52 in mosh.

It's a non-trivial feature request; it's another variation of the "but I want this reliable byte stream" problem.

from mosh-chrome.

sunaku avatar sunaku commented on August 15, 2024

@cgull you're right 😞, I finally got to test mosh 1.2.5 on a remote server and OSC-52 doesn't work. 😓 What happened in my initial (localhost) test was that my yank script also used X11 to copy text into my system clipboard, as a fallback, creating the illusion that mosh was actually passing OSC-52 through. 😅

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on August 15, 2024

Realizing from @cgull's comment that this requires a non-trivial enhancement to the upstream mosh which isn't likely coming anytime soon, I'm going to close this for now. Please ping this when/if this becomes available upstream, and I'll reopen.

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on August 15, 2024

I'll gladly reopen this (if needed) once your PR is in an official upstream Mosh release.

It isn't terribly difficult to build Mosh for Chrome, nor build it using your GitHub fork of the upstream Mosh which has your fixes, so you could get this in for yourself sooner. There's some documentation on building Mosh for Chrome in the GitHub wiki.

from mosh-chrome.

acornejo avatar acornejo commented on August 15, 2024

Sounds good. Hopefully one of the mosh maintainers can take a look over the patch and send me some feedback so that it eventually gets merged.

Perhaps @cgull would be interested in taking a look, since I see he commented on this bug as well.
The patch is simple enough, I piggy backed into the existing OSC infrastructure that handled terminal title changes to handle clipboard changes as well, so I am hoping it wont be too controversial.

Regarding building+running my own fork... when I was younger I enjoyed running my forked versions of everything (including obscure kernel patches). These days I am too old/lazy/busy to keep up with that. In fact this is part of the reason I am giving chrome os a try (coming from linux), so having to use it with customized extensions that I maintain kind of defeats the point.

Of course, if it turns out that its impossible for me to get this feature without building my own fork, I will read up on the wiki and revisit this decision.

from mosh-chrome.

acornejo avatar acornejo commented on August 15, 2024

mobile-shell/mosh#899 got merged.

Could we get a new mosh-chrome release?

from mosh-chrome.

rpwoodbu avatar rpwoodbu commented on August 15, 2024

@acornejo Glad you got your PR in! However, I stick with the actual released versions of the upstream Mosh code, so we'll need to wait until they do another release. They just did one (and I haven't quite gotten that out the door yet, still only in the dev track), so it may be a little bit.

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.