Discussion:
Is it possible to redraw screen after doing a charset change?
David Woodfall
2018-03-13 14:20:19 UTC
Permalink
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.

However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
David Woodfall
2018-03-13 14:55:18 UTC
Permalink
Going assumption is you're running a g.u.i. That being the case, try
running xrefresh.
I'm using mutt over ssh on a headless server. No X.
Date: Tue, 13 Mar 2018 10:20:19
Subject: Is it possible to redraw screen after doing a charset change?
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.
However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
--
Jude DaShiell
2018-03-13 15:02:53 UTC
Permalink
In ssh try tilde-r.
Date: Tue, 13 Mar 2018 10:55:18
Subject: Re: Is it possible to redraw screen after doing a charset change?
Going assumption is you're running a g.u.i. That being the case, try
running xrefresh.
I'm using mutt over ssh on a headless server. No X.
Date: Tue, 13 Mar 2018 10:20:19
Subject: Is it possible to redraw screen after doing a charset change?
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.
However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
--
--
David Woodfall
2018-03-13 15:12:24 UTC
Permalink
Post by Jude DaShiell
In ssh try tilde-r.
It doesn't do anything. I set EscapeChar ~ in ~/.ssh/config, but I
think my terminal must be grabbing it. Maybe there's a screen command
to do it?
Post by Jude DaShiell
Date: Tue, 13 Mar 2018 10:55:18
Subject: Re: Is it possible to redraw screen after doing a charset change?
Going assumption is you're running a g.u.i. That being the case,
try running xrefresh.
I'm using mutt over ssh on a headless server. No X.
Date: Tue, 13 Mar 2018 10:20:19
Subject: Is it possible to redraw screen after doing a charset change?
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.
However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
--
--
David Woodfall
2018-03-13 15:14:52 UTC
Permalink
Post by David Woodfall
Post by Jude DaShiell
In ssh try tilde-r.
It doesn't do anything. I set EscapeChar ~ in ~/.ssh/config, but I
think my terminal must be grabbing it. Maybe there's a screen command
to do it?
Well C-l redraws the screen, but the characters don't change. I think
it's mutt that needs to redraw, not ssh or screen.
Post by David Woodfall
Post by Jude DaShiell
Date: Tue, 13 Mar 2018 10:55:18
Subject: Re: Is it possible to redraw screen after doing a charset change?
Going assumption is you're running a g.u.i. That being the
case, try running xrefresh.
I'm using mutt over ssh on a headless server. No X.
Date: Tue, 13 Mar 2018 10:20:19
Subject: Is it possible to redraw screen after doing a charset change?
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.
However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
--
--
Kevin J. McCarthy
2018-03-13 16:58:48 UTC
Permalink
Post by David Woodfall
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.
However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
I think the mailbox may need to be reopened for mutt to reprocess the
headers, because they are stored in memory.

In version 1.8.0 and higher, the <mark-message> function can be used to
save your place, and the value in $mark_macro_prefix to restore it:
macro index ,r "<mark-message>a<enter><change-folder>^<enter>'a"
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
David Woodfall
2018-03-13 19:13:12 UTC
Permalink
Post by Kevin J. McCarthy
Post by David Woodfall
I have a couple of binds to change charset between UTF-8/ISO-8859-1.
The problem is that I need to exit from the pager and then reopen the
message to see the changes, so I added those commands to the macro,
which works fine.
However, this doesn't work in the index, so is there a way to redraw
the screen after a charset change? I don't see anything in the manual
about it.
I think the mailbox may need to be reopened for mutt to reprocess the
headers, because they are stored in memory.
In version 1.8.0 and higher, the <mark-message> function can be used to
macro index ,r "<mark-message>a<enter><change-folder>^<enter>'a"
That does sound like the way. I'll upgrade. Thanks.

Loading...