You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is reproducible on a stock Debian buster on both server & client, with both VTE-based terminals (mate-terminal, terminator) as well as xterm. The server was recently upgraded from Debian stretch, and this is when this manifested (this is a regression). This would be mosh 1.3.2, irssi 1.2.0, ncurses 6.1, VTE 0.54.2, xterm 344.
This is relatively easy to reproduce: connect via mosh to a remote system and run irssi, (no configuration necessary). Drawing is corrupted: the first line has garbage after the banner ( Irssi v1.2.0-2 - http://www.irssi.org), and the status bar isn't filled up with the default color. Running the same over SSH instead of mosh works fine. No tmux, screen or anything else involved.
Searching for more information about this issue, I found that ncurses in mid-2017 added "REP" to xterm, something which mosh (AIUI?) doesn't support. The ncurses FAQ seems to have a dedicated entry for this, even suggesting that TERM should should not be set to xterm by anyone but xterm itself (something that mosh does, again AIUI). Not sure if that is the real cause or not - can't say I am in expert in neither mosh, terminal emulators or ECMA standards from 1997 :)
With the little I understand, it sounds like mosh either needs to support REP, and/or switch to a different TERM variable - perhaps even having its own entry in the terminfo database?
The 20220312 ncurses release has an item that reads "add mosh and mosh-256color -TD". Indeed, on a recent Debian system /usr/share/terminfo/m/mosh and /usr/share/terminfo/m/mosh-256color exist. I have no idea what or who instigated this, perhaps someone from the mosh project?
However, mosh in src/frontend/mosh-server.cc seems to be setting the terminal to xterm/xterm-256color. Should this be changed?
This is reproducible on a stock Debian buster on both server & client, with both VTE-based terminals (mate-terminal, terminator) as well as xterm. The server was recently upgraded from Debian stretch, and this is when this manifested (this is a regression). This would be mosh 1.3.2, irssi 1.2.0, ncurses 6.1, VTE 0.54.2, xterm 344.
This is relatively easy to reproduce: connect via mosh to a remote system and run irssi, (no configuration necessary). Drawing is corrupted: the first line has garbage after the banner (
Irssi v1.2.0-2 - http://www.irssi.org
), and the status bar isn't filled up with the default color. Running the same over SSH instead of mosh works fine. No tmux, screen or anything else involved.Searching for more information about this issue, I found that ncurses in mid-2017 added "REP" to xterm, something which mosh (AIUI?) doesn't support. The ncurses FAQ seems to have a dedicated entry for this, even suggesting that TERM should should not be set to
xterm
by anyone but xterm itself (something that mosh does, again AIUI). Not sure if that is the real cause or not - can't say I am in expert in neither mosh, terminal emulators or ECMA standards from 1997 :)With the little I understand, it sounds like mosh either needs to support REP, and/or switch to a different TERM variable - perhaps even having its own entry in the terminfo database?
#1041 may be related.
The text was updated successfully, but these errors were encountered: