Add support of interactive input (close gh-1).