Hacker News new | ask | show | jobs
by oaiey 2066 days ago
What I miss in C# TUI/CLI land is an API not working full screen but line by line base (basically doing sophisticated readlines).

Someone know a lib for that?

1 comments

Too simplistic. yo generator or npm init for example having selections, dropdowns and things like that (I just referenced them out of my head).
If you know python, there is a package called prompt-toolkit which does what you are looking for

https://github.com/prompt-toolkit/python-prompt-toolkit

Yeah .. something like that is missing in C# land (IMHO)
Depending on how much effort you want to put into it, you may be able to use prompt-toolkit with IronPython (would have to use version 2.0 of prompt-toolkit since that supports Python 2.x) and then reference that in your C# applications
It may be easier to implement now with the improvements to conhost and now Windows Terminal
Sounds like a damn new project to do :)