Made cosmetic changes and esc key+history keys more intuitive
The editor window resizes automatically as needed and the colors are more consistant.
When pressing the escape key, the history pos is set to -1 to make the up arrow start with the 0th entry