interactive buffer history using last line of screen