It is provided via the GNU readline library. you should look into man 3 readline to find out its description.
Looks like you also need information about what escape codes like \[A mean. You can find this information in Wikipedia's ANSI escape code article.