Buffered input for line editing (with echo)