Replace reset-prompt with push-line and accept-line
The in memory history is not updated until an accept line command, so you
have to push enter before it is correct, this commit replaces the reset-prompt
with an accept-line. It also adds a push-line, to preserve the current editing
buffer