Fixed Home/End keys sent from PuTTY.
Fixed backspace during history searching.