Add LineBuffer function

Add LineBuffer function that enables you to know what the user is editing.
This function is based on [rl_line_buffer](http://www.delorie.com/gnu/docs/readline/rlman_28.html).
It is useful when you want to know whether the user is writing something or not from other goroutine.