I would like to bind a key with bash / readline, to clear the bottom of my console screen.
The ANSI sequence to clear the bottom of the screen is
\e[J, so I tried to add the following line to my
.inputrc, but it doesn't work, it simply ignores the three chars:
If I add some test chars inside the string:
Control-N: "BEFORE \e[J AFTER"
, then the string
BEFORE is inserted and it stops there.
For the moment, I found this workaround, but it obviously displays a line with the
echo command, and I don't want it:
Control-N: "echo -ne \"\\e[J\"\n"
Is it possible to send ANSI sequences with a