Hello Dominik, Mosh, OpenSSH, and TELNET all just literally convey these characters from the client to the pty. None of these programs try to interpret sequences like "Ctrl-A n" or "ESC #". (To double-check, I have just tested ESC # using "mosh localhost" and I could not see any difference in the behavior with or without Mosh.)
I am not sure if you have identified a problem with screen and the timing of its input, but I do not think this report describes a Mosh bug. If you disagree, please consider opening a bug report with replication instructions at the upstream GitHub: https://github.com/mobile-shell/mosh Thank you, Keith On Wed, Nov 16, 2016 at 4:24 AM, Dominik George <n...@naturalnet.de> wrote: > Package: mosh > Version: 1.2.6-1+b1 > Severity: important > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > I have trouble using mosh together with screen and even a normal shell > because mosh does not handle control sequences correctly. > > Two example: > > Ctrl-A n for switching to the next screen inside GNU screen works > under normal circumstances, but when the connection gets bad and > mosh starts queueing and predicting things, once the connection comes > back, ^An is written to the shell verbatim, making the behaviour > wrong and non-deterministic and even leading to data corruption > if unnoticed. > > Escape sequences, like Esc # for terminating the current shell > input line and prefixing it with a #, do not work at all. > > - -- System Information: > Debian Release: stretch/sid > APT prefers unstable > APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/lksh > Init: systemd (via /run/systemd/system) > > Versions of packages mosh depends on: > ii dpkg 1.18.10 > ii libc6 2.24-5 > ii libgcc1 1:6.2.0-10 > ii libprotobuf10 3.0.0-7 > ii libssl1.0.2 1.0.2j-1 > ii libstdc++6 6.2.0-10 > ii libtinfo5 6.0+20160917-1 > ii libutempter0 1.1.6-3 > ii openssh-client 1:7.3p1-2 > ii zlib1g 1:1.2.8.dfsg-2+b1 > > Versions of packages mosh recommends: > ii libio-socket-ip-perl 0.37-1 > ii perl-base [libio-socket-ip-perl] 5.24.1~rc3-3 > > mosh suggests no packages. > > - -- no debconf information > > -----BEGIN PGP SIGNATURE----- > > iQJhBAEBCABLBQJYLFAAMRpodHRwczovL3d3dy5kb21pbmlrLWdlb3JnZS5kZS9n > cGctcG9saWN5LnR4dC5hc2MSHG5pa0BuYXR1cmFsbmV0LmRlAAoJELeaPBagxPKW > MOMP/i/hkXApBtJh6XQIPpgn+OCmQJ+0XU+KaAQs2/DHWZ3Hq8ECkL7wF8ZXB9RS > gtMyDcLvCo7WTp6FWdAosZ3ScITn/gq99r+u74wKUdowPbVwykvnJDZZVDmE1JS6 > 3+EJujCBUMI6A8SldgtfDal9KCbVK+rOYayAf//lIoAkP32kT+Xy6vhCTuCRFcUB > zHXGuYG0g0JeEjS8o01vsyDc9mrWamKId7gaHme3wNXWuUTILaxVC93O5XauBtYW > VNjq9wNof/fR9lHAcTR1bSV2X+7mRUyRtmrznZ/H/ikw/0j/+V68HiYT0JE9hS1O > bEo3nFlkOKAOk/zcMoYMdzM8pzQOXGQ72SymaEwb7H6R2R2rHHPTjhQtuByagHq8 > yvY58sQnmAhQ+UUK8d8JYJdBFxwVt6uVxrv6iYLhSM41tNsMzcQRUZcu9XfvDPaL > XK6A2d/gdMRROYDExJQ0wontaaRqnPGPYbg/YLd/NrGuJsz5Ot3l2XqIFJF3tY8w > ksac7cKThYS0SjdsJhtC/I657t2Acz8HNeSInJXX3s3seVuS3rqhLI0rfuJYeC8a > jFTXfST0PQCAeXz41enan8DuewVlm+HFYfRd4+7L+fEJgLzTfUhZ0wI6Ua5KOToU > Q6H9Hyo1mknfcvGTDghNfWNrOVr+uecLr/mRvrxGNnhSq4Jg > =Av/J > -----END PGP SIGNATURE----- >