Add readline function support with autocompletion by tab key.