In bash(and others) I can use C-x C-d or other keybindings to edit command using external editor defined in $EDITOR or $VISUAL.
However, when I use libreadline in my program, it doesn't have similar functionality by default.
How to enable it in my program? Or maybe it is bash specific fearure, not libreadline? How to implement it then?
Just took a look at bashline.c in Bash source code and found: