Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory tracking not working with mosh #454

Open
greened opened this issue Nov 23, 2020 · 7 comments
Open

Directory tracking not working with mosh #454

greened opened this issue Nov 23, 2020 · 7 comments

Comments

@greened
Copy link

greened commented Nov 23, 2020

I've been using emacs-libvterm successfully for a while with ssh. Recently I tried mosh and suddenly remote directory tracking doesn't work. find-file doesn't recognize that I'm on a remote host and doesn't present a TRAMP remote path. I have not changed my prompt.

I'm pretty sure this isn't a libvterm problem per se, but I'm not sure how to go about diagnosing the issue. Any suggestions?

@Sbozzolo
Copy link
Collaborator

Directory tracking has to be configured on the remote server as well. To do this, you have to print out your username, hostname, and folder with the escape code 51;A. This is the same for (ansi-)term, so if you find some examples for that, it should work here as well.

@greened
Copy link
Author

greened commented Nov 24, 2020

I have done all that and it works great with ssh. Switching to mosh causes it to fail.

@Sbozzolo
Copy link
Collaborator

Sorry, my bad. I got confused about what mosh is.
A quick search brings me to this PR: mobile-shell/mosh#637
This would add support to OSC 51 (I think), which is what we need.

@greened
Copy link
Author

greened commented Nov 24, 2020

Doesn't that issue talk aabout OSC 52, not 51?

I also filed an issue with mosh about this and will update it with your information. Thanks!

@Sbozzolo
Copy link
Collaborator

Sbozzolo commented Nov 24, 2020 via email

@greened
Copy link
Author

greened commented Nov 24, 2020

I'm going to try to take a crack at implementing it in mosh.

@greened
Copy link
Author

greened commented Nov 24, 2020

And...I got stuck right away. I took the existing patch in mobile-shell/mosh#637 but like the author, don't know how to actually send the OSC through to the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants