Bash uses GNU readline library which can be used only for open source programs (with an appropriate license). But you can use rlwrap. It is in most Linux distributives. You can use it as rlwrap fdb, for example.
rlwrap fdb