#3912: mutt renders the screen incorrectly when using a unicode 9.0.0-supporting
terminal
----------------------+----------------------
Reporter: doyster | Owner: mutt-dev
Type: defect | Status: new
Priority: minor | Milestone:
Component: display | Version:
Resolution: | Keywords:
----------------------+----------------------
Comment (by vinc17):
Replying to [comment:2 jcdenton]:
> Oddly enough, mutt seems to behave fine with these characters outside of
tmux/screen.
I assume that most software uses the standard {{{wcwidth}}} function, so
that when there is a change in it, everything remains consistent: the
display in the terminal, the cursor position (I assume that's handled by
ncurses), word-wrapping (see the use of {{{wcwidth}}} in Mutt's pager.c
file)...
However, GNU Screen doesn't use this function. Actually, GNU Screen isn't
even really aware of multibyte charsets (it doesn't use the {{{wchar_t}}}
and {{{wint_t}}} types at all). Thus, it has its own table, which may be
out-of-sync with the standard {{{wcwidth}}} function. I don't know whether
there is a good reason, but one reason may be that invalid sequences,
which may occur at the terminal level (outside of Mutt), can be handled.
I don't know about tmux.
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3912#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent