I pressed Ctrl-R to enter into reverse-i-search
mode. I stared typing and I couldn't find the command I was looking for. Now I want to exit this search mode. If I press Esc, the last line I viewed will remain on the prompt. I don't want that. I want to go back to a completely clean prompt. How do I do this?
Add a comment
|
2 Answers
This is an easy one ctrl+c
-
3Ctrl+C also stops other program that may be running in the foreground. E.g. interactive shell in MC server. If you enter reverse-i-search there and use Ctrl+C, it will stop the server (which is something you don't want to do).– FanaticDSep 10, 2019 at 7:27