Other attempt to fix test_user_command on OpenSolaris.
Third attempt to fix test_user_command on OpenSolaris.
use new readline function types (closes #20374)