avoid erasing text that is required later.
Fix bug: OK handling on function list in linear mode did not copy the
function expression into the textfield before editing
When the user scrolls the history, the draft command is not erased.
When pasting a previous command, the text is inserted at the cursor
location.
Change-Id: I1cd9645de74f34fad4ed0898203e05bd3352456a
It stores and displays the result in the console store.
An empty line returned at the end of the execution is deleted.
Change-Id: Ic90e02e2d91d0a0033413da0588032d9450aefd0