Made cursor_position and text properties of the  object.
Refactored Prompt.write_input.
Implemneted 'arg' for pasting in emacs mode.