2 ms·
Hello HN! I love building small interactive programs that run in your terminal, and for that, you often need a way to print out and get input, at the same time
by lionkor 5y ago
Hello HN!
I love building small interactive programs that run in your terminal, and for that, you often need a way to print out and get input, at the same time, asynchronously. For example, a chat app will need to print incoming messages, even while the user is typing.
`commandline` is a cross-platfrom library, written in modern C++, which aims to solve exactly this issue. It allows an app that uses it to print messages from multiple threads blindly, while handling on-demand input from the user. It's similar to GNU's getline in this way, but is MIT Licensed which was one requirement I had in a non-GPL project in the past.
I've just released version v1.0.0 of it, the first release, after around 1 year of on-and-off development, and am very excited to get feedback from this awesome community!
I'm here for any questions, and the GitHub is also open for any issues that may come up!