Add retype/history feature to G-Code terminal

A handy feature of many UNIX like terminals is the ability to hit the arrow key to scroll back thru the history of the entered lines…this would be handy in the Gcode terminal especially when doing repetitive commands…I find myself trying to do it all the time just from habit.