minishell icon indicating copy to clipboard operation
minishell copied to clipboard

[BUG] Readline history + `Ctrl+C` behaves differently than bash

Open itislu opened this issue 1 year ago • 0 comments

If you go back more than one input line in the readline history and then hit Ctrl+C, the initial behavior is correct. However, if you then press the DOWN arrow key, the input line that appears is the one below where you hit Ctrl+C.

It means you are still in the same position in the readline history, even after pressing Ctrl+C.

Maybe this can be fixed with one of the terminal manipulation functions. It might be interesting to learn more about them in the process.

itislu avatar Jan 31 '24 00:01 itislu