-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rendering issues in MOSH (was: Working with ttyd but not mosh) #47
Comments
Thank you for chasing this down and your diligence in finding a resolution for this issue @vanrein - it is much appreciated. Twin deserves to be relevant as the awesome window manager that it is, and MOSH support is kinda really sorta very important. |
OK, there is one difference. Both MOSH and TTYD use TTYD continues to report Without the GPM failure, the |
It would seem that Tried MOSH without GPM running, same output. Conclusion: Things fail on MOSH before And then the code gets really confusing... |
My The difference was in the install base, not in TWIN. Reconfigured (which the instructions say should not ever be a problem, ahem) and rebuilt. Now it does not error anymore like it did. (It shows no output, but that might be a local terminal problem.) Sorry for the uproar -- well, sort of -- the relations were not very clear. |
I got TWIN working in MOSH, but I may be the first, as I'm encountering rendering trouble: The brown colour is how my terminals normally look in the surrounding terminal. And black is probably the default assumed by TWIN. When I move windows around, with or without shadows, parts are overwritten, when they are thought to have changed; this sounds typical of MOSH. I could not find a way to ask an This is a rendering bug, but I am not sure where in the chain TWTERM -- TWIN -- MOSH -- ITERM the cause lies. I never encountered it before, however, not with MOSH -- ITERM at least. |
Colour information does seem to be available, according to the xterm documentation, which states
The list of parameters for "dynamic" colours does indeed match; the documentation says, among others,
and the I cannot seem to get the query output from the |
I'm looking forward to @cosmos72 (Max) effecting another official release once you get these issues finally ironed out, and then I'll package it up and push it to the package repo so it's available. There's also (if it's still there) an undocumented, from what I remember, batch file feature called 'twstart'. I'll look around further to see if I can find any docs on it, as I seem to recall that I only came to know of it through the very old documentation years ago in the sourceforge repo. Maybe I should work on the docs and issue a PR after adding in coverage of that (If it's still there). But that's a completely separate matter. |
Hi Bradley,
I've been successful running TWIN over MOSH yesterday, with good results. The only quirks were:
* I had to use a black TTY background (a bit less restful, but it saves me from chasing Esc codes)
* Editing during connection delays, MOSH replaces lines in the VI window + all to its right
* Copy paste does not work
* Much longer battery life than under Mac OS X ;-)
Copy-paste is really a stumbling block IMHO. It does not work, but outside of MOSH I've seen it work but then it fills lines up with spaces, rather than noticing each end-of-line. I wonder if not working at all relates to MOSH, but since it's all done server-side I imagine not.
Maybe I should work on the docs and issue a PR after adding in coverage of that (If it's still there). But that's a completely separate matter.
I've also been wondering to work on documentation a bit. Still learning, but I've been missing it bigtime. No idea how detach works, and display recurses on itself, so I'm probably missing out on powerful possibilities. There might be an interesting combination between MOSH and TWIN detach too. Been wondering if/how this integrates with screen and tmux, for which TWIN feels like a graphical alternative.
Another angle where I feel some interest is to look into TWDM and see if I can subtitute a SASL-based alternative for remote access.
There's no mailing list for TWIN, right? That's where this stuff would normally go :-)
…-Rick
|
Twin has always worked well for me with tmux, I'll typically ssh into a box and then do a tmux attach in the remote session, although there are little display idiosyncrasies, throughout. There is a mailing list, yet I haven't received anything from it since 2012: Max's email addy is easy to discern from that page, and I think it's still current, although I haven't had any direct exchanges with him for years. I do believe that he attempted to explain detaching and setting displays ala X-Windows style to me there, but I was confused too, so haven't been able to take advantage of those additional powerful features. If you don't see it, then I'll look in my own email archives to see if I can't find it, or the website he bundled up for me back then. He does commit bugfixes here occasionally. I would still be glad to donate a domain and host a site for Twin, but it might be just as well to do the hosting here on GitHub. I did a write up a few years back, although it's pretty dated at this point: Somewhere way back I did a HowTo for Twin on CentOS, not sure if that's even relevant anymore. And FWIW, there is this kewl PR: #5 |
Hi @tallship, hi @vanrein, Let me try and answer your questions and doubts:
P.S. if you want to contribute, you're welcome! Documentation and fixes are surely appreciated :) |
TWIN works great in ttyd and really adds value there; for TWDM there was a need to add a one-shot option, as a resource is not freed otherwise. See PR #46 for details.
Since both TTYD and MOSH use
xterm-256color
displays, I expected TWIN to work well with MOSH too. But it does not!To replicate:
Spelling out the ANSI codes, this logs:
in readable terms, that's
My suspicion is that something makes TWIN think that MOSH is like a Linux environment, in spite of having
TERM=xterm-256color
set, and then bogs down to refusal because it is not actuallyTERM=linux
compliant.Note: Fixing this would mean that TWIN can be used virtually anywhere, even on Mac OS X with
iTerm.app
, which is why I am chasing this. It also seems like MOSH and TWIN are a marriage made in heaven -- just think of train rides with "graphical" interactivity as a big thank you to the textual nature of the display!The text was updated successfully, but these errors were encountered: