tiny readline-alike with some batteries included
