[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#981511: reportbug: Probably wrong terminal type



On 2/1/21 12:09 AM, Sandro Tosi wrote:
    * What led up to the situation?
My EDITOR is set to 'vi', but when launching the editor from inside
reportbug, it doesn't correctly clear lines on scrolling, so that
any text from a previous longer line is still visible.
This makes editing nearly impossible.
Unlike I wrote in the subject, the terminal type seems still to
be correct (at least when I start a shell from inside the editor
it shows the correct value 'xterm').

Actually I just found that after returning from the shell,
vi behaves fine, just the original vi invocation is wrong.
With this workaround it might just be 'minor'.

Sorry, but i have no idea what you're trying to say here? what's the
actual problem, in concrete terms, maybe even with an example?

===================================================================
This is how my terminal looks like after doing a CTRL-F in vi
on the docker.io bug:
This is probably the correct behaviour.
My suspicion is that this docker container doesn't mount /proc
correctly, but I haven't checked this.
X-Debbugs-Cc: dv@vollmann.ch
This started with docker.io 20.10.1+dfsg1-1.
Severity: minor

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)tarts a container with a single
Foreign Architectures: i386is starts qemu-s390x-static with this
binary, and that segfaults:
Kernel: Linux 5.10.0-2-amd64 (SMP w/4 CPU threads)000043afa0 sp 00007ffdb3fc62c8Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)up, but I assume
LSM: AppArmor: enabledchitectures work.
If I run the qemu manually in my normal root fs, it simply returns:
Versions of packages docker.io depends on:
ii  adduserbably the corr3.118ehaviour.
ii  containerds that this1.4.3~ds1-1+b1ner doesn't mount /proc
=====================================================================
Some lines are just fine, but look at the last two lines:
tabs don't delete the previous contents and the rest of the line
is also not cleared.
After going up and down in the file the terminal (xterm) is
completely filled with garbage.
To check the TERM variable, I exited vi to a shell (':shell'),
saw that TERM was still 'xterm', got back to vi and suddenly
vi behaved correctly again.

If I use vi directly, or started by any other program (e.g.
'git commit'), I never have this problem.

  Detlef


Reply to: