Re: mutt, emacs, iterm2 on OS X

2013-11-11 Thread Kyle Wheeler

On Thursday, November  7 at 11:12 AM, quoth Peter Davis:
I'm using mutt 1.5.21 on OS X 10.9 in iTerm2, with emacs 24.2.1 set as 
my editor (with the -nw option, so emacs runs in the same window as 
mutt). I find when I edit a message or reply, either emacs or mutt is 
not restoring the terminal state properly, so the screen does not 
display correctly. I see partial lines that are not erased or 
repainted, reverse video areas that should not be, etc.


I basically have to quit and restart mutt to get things right again.


That sounds like you have your TERM environment variable set 
incorrectly for iTerm2. I'm not sure what the right TERM setting is, 
but if you're currently using something like vt100, you might be 
able to fix it by setting your TERM to xterm.


You should also be able to fix it by pressing ctrl-L - that forces a 
terminal clear and redraw.


~Kyle
--
Nip the shoots of arbitrary power in the bud, is the only maxim which 
can ever preserve the liberties of the people.

  -- John Quincy Adams


pgpwT6gbADXJ6.pgp
Description: PGP signature


Re: mutt, emacs, iterm2 on OS X

2013-11-11 Thread Peter Davis
On Mon, Nov 11, 2013 at 02:52:21PM -0700, Kyle Wheeler wrote:
 
 That sounds like you have your TERM environment variable set
 incorrectly for iTerm2. I'm not sure what the right TERM setting is,
 but if you're currently using something like vt100, you might be
 able to fix it by setting your TERM to xterm.

Thanks, Kyle. That is indeed what it turned out to be. I had added
some frame sizing code to my .emacs, but forgot to conditionalize it
for the case of running on a terminal (emulator). Also, when I
upgraded my Mac to Mavericks, it negated my X11 installation, so the
`resize` command I had been calling to set the dimensions was gone.

 You should also be able to fix it by pressing ctrl-L - that forces a
 terminal clear and redraw.

I did try that, but that wasn't working either, presumably because of
the incorrect dimensions in TERM.

Seems to be working now. Thanks!

-pd