Dave Blanchard <d...@killthe.net> writes: > Hello all, can you please help me to understand what Qemu is doing here? > > When connecting to the guest for example using a serial/tcp/telnet link, some > kind of code is being immediately transmitted over the link which screws up > my Xterm terminal settings, including changing the text cursor shape and most > notably, disabling wraparound of long lines, so that they get truncated at > the edge of the window instead. > > Can this behavior be disabled by command line, and if not, what is the code > doing exactly so I can know where to disable it? I tried disabling all calls > to tcsetattr() but that had no effect. > > Dave
I looked into the automatic margins issue a long time ago and I seem to remember it was caused by the firmware (SeaBIOS) configuring the terminal and QEMU just never returning it to the original state. I eventually gave up trying to fix it because I was having trouble finding a reliable point in QEMU shutdown sequence to enable the capability back. Nowadays I just run 'tput smam' after quitting QEMU. Not a lot of help, I know. Hopefuly someone else has more information about this. I'd be interested in finding a proper solution for this situation.