Should implement history - as much as fits in the given buffer (including the current line, if anything has been entered).