After quitting elinks, the browser page history is lingering in my scrollback buffer, and therefore not returning to whatever was buffered on screen when I launched elinks.
Inside a GNU screen with altscreen enabled, this does not happen. But in any normal terminal session elinks stays in the buffer. I note that other terminal programs like Vim and lynx do not stay in the scrollback buffer, and instead return the buffer to its state at the time they were launched. I am not finding a configuration option in ELinks to ensure it switches to the alternate terminal, however.
$TERM=xterm-256color
Is there a configuration option to prevent ELinks sticking around in the scrollback buffer?
Update:
On a little further investigation, the scrollback problem occurs only in iTerm2 and Terminal.app on OSX. In an XTerm, ELinks does not modify the scrollback buffer.