[readline] clean up