support libreadline