mobile-shell / mosh

Mobile Shell
https://mosh.org
GNU General Public License v3.0
12.67k stars 737 forks source link

Weird problem when repainting newlines #856

Open seirl opened 7 years ago

seirl commented 7 years ago
15:38:24 <seirl> hey all, there's a bug in all the versions of mosh i tried: it doesn't properly repaint the "absence of spaces"
15:38:38 <seirl> which is very annoying when copy pasting from the terminal
15:38:58 <seirl> because sometimes some lines will end with tons of useless spaces
15:39:22 <seirl> i wanted to know if this was a known bug, if there were any workarounds known, and if I should file an issue for that
15:41:36 <seirl> for instance this is what i get while copying the things i just said from weechat's "bare mode": http://paste.awesom.eu/R1WG
15:42:07 <seirl> you can see that the \n was replaced by a complete line of spaces
15:42:34 <seirl> and it's pretty random, if i try again: http://paste.awesom.eu/bwpR
15:42:59 <seirl> and again: http://paste.awesom.eu/8kkJ
15:43:13 <seirl> (this is after doing ctrl+L multiple times)
15:46:06 <kjetilho> so I see this myself occasionally - but now I resized my terminal (urxvt) - and the newlines are reinstated.  who's to blame/praise?
15:46:51 <seirl> indeed it refreshes the newlines when i sigwinch
cgull commented 7 years ago

clickable paste links: http://paste.awesom.eu/bwpR http://paste.awesom.eu/8kkJ

cgull commented 7 years ago

clickable paste links from above: http://paste.awesom.eu/bwpR http://paste.awesom.eu/8kkJ

from further irc conversation, on mosh-1.3.0rc2: http://paste.awesom.eu/bAAG @seirl is using screen, but has also seen the problem with tmux

cgull commented 7 years ago

@seirl: I still can't reproduce this. Can you describe the chain of apps from your outer terminal emulator through to weechat? Is it possible for you to capture a typescript with script on your server that captures this bad copy-pasta?

seirl commented 7 years ago

I haven't been able to reproduce it after moving to tmux and restarting my IRC client completely. If someone has the same issue or if I'm able to reproduce it again, I'll reopen the issue.

Thanks a lot for the help :)

robsmith11 commented 4 years ago

I've been getting this bug on all of my Android devices for years. Any idea how to debug?

My setup is termux -> local tmux -> mosh -> remote tmux -> vim/bash/repl

seirl commented 4 years ago

Oh, I'm reopening that because I still have that issue actually, even when on tmux with a recent version of everything.