{"action":"created","issue":{"url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/issues/40","labels_url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/issues/40/comments","events_url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/issues/40/events","html_url":"https://github.com/rpwoodbu/mosh-chrome/issues/40","id":28549943,"number":40,"title":"osc52 support for hterm paste to clipboard","user":{"login":"shirro","id":203445,"avatar_url":"https://avatars.githubusercontent.com/u/203445?v=3","gravatar_id":"","url":"https://api.github.com/users/shirro","html_url":"https://github.com/shirro","followers_url":"https://api.github.com/users/shirro/followers","following_url":"https://api.github.com/users/shirro/following{/other_user}","gists_url":"https://api.github.com/users/shirro/gists{/gist_id}","starred_url":"https://api.github.com/users/shirro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shirro/subscriptions","organizations_url":"https://api.github.com/users/shirro/orgs","repos_url":"https://api.github.com/users/shirro/repos","events_url":"https://api.github.com/users/shirro/events{/privacy}","received_events_url":"https://api.github.com/users/shirro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-03-01T04:08:39Z","updated_at":"2015-07-29T20:11:42Z","closed_at":"2015-07-29T20:11:41Z","body":"hterm supports osc52 to write from the term to the system clipboard. There are examples of a shell command and vim plugin in libapps/hterm/etc. I have found this works well with Chrome Secure Shell packaged app but when I use mosh, either the packaged app or start mosh over Secure Shell the osc sequence doesn't appear to get through the mosh terminal emulation.\r\n\r\nThis is probably an upstream issue for mosh. I added a comment at https://github.com/keithw/mosh/issues/382#issuecomment-36415144 but I don't know if it is something that would be fixed upstream. It might be an idea to patch mosh for mosh-chrome because this limits mosh-chrome compared with the Secure Shell app that sets expectations on Chrome. I have looked at the mosh terminal emulation and unfortunately c++ isn't my thing. It looks like they capture OSC sequences and use them for set title and possibly discard the rest but I am not sure how to fix it.\r\n\r\nbtw tmux also eats osc52 which limits usefullness until I can find a patch for that as well. if testing make sure you aren't running tmux."},"comment":{"url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/issues/comments/126082361","html_url":"https://github.com/rpwoodbu/mosh-chrome/issues/40#issuecomment-126082361","issue_url":"https://api.github.com/repos/rpwoodbu/mosh-chrome/issues/40","id":126082361,"user":{"login":"rpwoodbu","id":1192829,"avatar_url":"https://avatars.githubusercontent.com/u/1192829?v=3","gravatar_id":"","url":"https://api.github.com/users/rpwoodbu","html_url":"https://github.com/rpwoodbu","followers_url":"https://api.github.com/users/rpwoodbu/followers","following_url":"https://api.github.com/users/rpwoodbu/following{/other_user}","gists_url":"https://api.github.com/users/rpwoodbu/gists{/gist_id}","starred_url":"https://api.github.com/users/rpwoodbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpwoodbu/subscriptions","organizations_url":"https://api.github.com/users/rpwoodbu/orgs","repos_url":"https://api.github.com/users/rpwoodbu/repos","events_url":"https://api.github.com/users/rpwoodbu/events{/privacy}","received_events_url":"https://api.github.com/users/rpwoodbu/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T20:11:41Z","updated_at":"2015-07-29T20:11:41Z","body":"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."}}