#3392: Whitespace garbage in pager mode
----------------------------+-----------------------------------------------
Reporter: marcel | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: user interface | Version: 1.5.20
Keywords: |
----------------------------+-----------------------------------------------
Changes (by me):
* milestone: 1.6 =>
Old description:
> Situation: mutt compiled with slang, running on OpenSolaris.
>
> When I switch from the index mode to pager mode in most cases the
> background is printed using spaces. It means that lines does
> not terminates with "\n", but they are full of spaces till end of
> the terminal line.
>
> When I use gnome-terminal with mutt and I want to copy and paste
> a message text (several lines) using mouse, I'll get all lines with
> additional spaces on the line ends.
>
> It seems the mutt_pager() function does not clear the screen before
> displayed leaving the screen full of spaces.
>
> As a workaround I found that the simple additional
> clearok(stdscr,TRUE); call in mutt_pager() fixes the issue for me.
>
> I am not sure whether this fix is correct or not, but in my case
> it works.
>
> For reference:
> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6796795
New description:
Situation: mutt compiled with slang, running on OpenSolaris.
When I switch from the index mode to pager mode in most cases the
background is printed using spaces. It means that lines does
not terminates with "\n", but they are full of spaces till end of
the terminal line.
When I use gnome-terminal with mutt and I want to copy and paste
a message text (several lines) using mouse, I'll get all lines with
additional spaces on the line ends.
It seems the mutt_pager() function does not clear the screen before
displayed leaving the screen full of spaces.
As a workaround I found that the simple additional
clearok(stdscr,TRUE); call in mutt_pager() fixes the issue for me.
I am not sure whether this fix is correct or not, but in my case
it works.
For reference:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6796795
--
Comment:
mutt_pager() calls "move(0,0); clrtobot();" to perform a full screen
redraw. clearok() should only be needed when some external process has
written to the screen and mutt is unsure of the screen state.
myon points out that terminals that lack bce support will get lines padded
with spaces. However, I'm not sure why the clearok() would cause them to
disappear.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3392#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent