Fixed scoping bug
made lines redraw when moved.
Clear input value when you prompt again.