recognise rmcup and rmkx in prompts