Added proper backspace functionality. The prompt can still be deleted, but this is purely aesthetic (or non-aesthetic I suppose) and does not affect functionality.