Oh I see now what you mean, you want to bind directly to commands of the terminal, and not the input sent to the shell.
In that case, I’d recommend you try the jline3 solution that is described inside your stackoverflow link.
Oh I see now what you mean, you want to bind directly to commands of the terminal, and not the input sent to the shell.
In that case, I’d recommend you try the jline3 solution that is described inside your stackoverflow link.