Bug fix to Terminal::GetLine

The get line function has been replaced with a more standard approach.
It has better handling for special characters etc.

This also fixes the issue where command history was not displayed in the
console back log