Package: screen
Version: 4.4.0-6
Severity: important

A wide character can corrupt the display, as shown by the following
example with Mutt. The mailbox file "mbox" and config file "muttrc"
are attached.

1. Start "screen" with "defbce on" in the .screenrc file.

2. Open this mailbox with: mutt -F muttrc -f mbox

On a 60-column terminal, I get:

────────────────────────────────────────────────────────────
q:Quit  d:Del  u:Undel  s:Save  m:Mail  r:Reply  g:Group  ?:
      1     Nov 30 a@x.invalid     (   1) mail 1
->    2     Nov 30 b@x.invalid     (   1) XX mail 2

where XX (which corresponds to U+1F534 LARGE RED CIRCLE) depends
on the terminal, but takes 2 columns.

3. Detach the screen session.

4. Reattach the screen session.

I get:

────────────────────────────────────────────────────────────
      1     Nov 30 a@x.invalid     (   1) mail 1
->    2     Nov 30 b@x.invalid     (   1) XX mail 2

i.e. the contents have shifted upwards.

5. Type the up arrow.

Nothing changes, i.e. the arrow still seems to be over mail 2,
while the current message is mail 1.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages screen depends on:
ii  libc6      2.24-7
ii  libpam0g   1.1.8-3.3
ii  libtinfo5  6.0+20160917-1

screen recommends no packages.

Versions of packages screen suggests:
pn  byobu | screenie | iselect  <none>
ii  ncurses-term                6.0+20160917-1

-- no debconf information
>From a@x.invalid Wed Nov 30 19:59:33 2016
From: a@x.invalid
Subject: mail 1
Date: Wed, 30 Nov 2016 19:58:44 +0100
MIME-Version: 1.0
Content-Type: text/plain
Status: RO

mail 1

>From b@x.invalid Wed Nov 30 20:06:58 2016
From: b@x.invalid
Date: Wed, 30 Nov 2016 20:06:53 +0100 (CET)
Subject: =?UTF-8?Q?=F0=9F=94=B4_mail_2?=
MIME-Version: 1.0
Content-Type: text/plain
Status: RO

mail 2

set arrow_cursor

Reply via email to