Repo achived. We wrote a C++17 version of a readline-like library here, which is open to Windows support, check it out:
https://github.com/ericcurtin/readline.cpp
This was initially written as a C++ version of:
https://github.com/antirez/linenoise
If looking for a lightweight C version of a readline-like library, above is an option.