Currently usql uses the Readline library from https://github.com/gohxs/readline, which is a fork of https://github.com/chzyer/readline.
However, gohxs/readline hasn't had any commits for 8 years. Seems to me the original library chzyer/readline would be a better choice these days, as it continues to be actively maintained? If it is missing something, perhaps take the code from gohxs/readline you rely on and send as Pull Request to chzyer/readline?