OS X Terminal lines don't go into scrollback
- by Steve Madsen
I have a problem that crops up when using Mac OS X's Terminal (TERM=xterm): sometimes it gets itself into a state where lines that scroll off the top are not added to the scrollback buffer. I'm not using screen or similar; this is a plain bash shell inside a Terminal tab.
It doesn't do this immediately after opening a new tab. I believe it is a side-effect of something I've run in the problem tab. My guess is that it has something to do with the xterm emulation, possibly the scroll region.
What hasn't worked:
Soft and hard reset via the Shell menu
Running reset in the tab
Is there a reliable way to reset Terminal and/or the xterm state?
Can anyone provide a explanation for what's happening, even if the only fix is to close the tab and open a new one?