input rc for better history search