1. Use readline package.