Command-line client using readline