Ticket #2953 (new defect)

Opened 15 months ago

Last modified 12 months ago

A source "command|" in /etc/Muttrc prevents screen's altscreen from working

Reported by: adeodato Owned by: mutt-dev
Priority: minor Milestone:
Component: mutt Version:
Keywords: Cc: dato@…

Description

Okay, I don't know who is at fault here, and if there's a fix possible within mutt, but having a source "command|" statement in /etc/Muttrc makes screen's altscreen feature not work. Note that having such source command in ~/.muttrc does not exhibit the problem.

To reproduce:

% echo altscreen on >screenrc
% echo 'source "/bin/echo|"' >>/etc/Muttrc
% screen -c screenrc
% clear
% mutt
q

When quitting mutt, the prompt will be at the bottom of the window, instead of the top.

Change History

Changed 12 months ago by pdmef

Umm, this works here. A 'source|' from the system config by no means different then ser config, except that it gets parsed earlier. Also, when do clear the screen, what do expect to see if you clear the screen before running mutt?

Changed 12 months ago by Adeodato Simó

* Mutt [Fri, 30 Nov 2007 08:35:26 -0000]:

> #2953: A source "command|" in /etc/Muttrc prevents screen's altscreen from working

> Comment (by pdmef):

>  Umm, this works here. A 'source|' from the system config by no means
>  different then ser config, except that it gets parsed earlier. Also, when
>  do clear the screen, what do expect to see if you clear the screen before
>  running mutt?

The difference is that, outside screen, or in a screen without "source |"
in Muttrc, if you run and quit mutt right after invoking "clear", you see:

  hostname% mutt
  Mailbox is unchanged.
  hostname%

OTOH, inside screen in a 24-line terminal I'm seeing:

  hostname% mutt






















  Mailbox is unchanged.
  hostname%


That is, lots of empty line in the middle.
Note: See TracTickets for help on using tickets.