当前位置: 动力学知识库 > 问答 > 编程问答 >

.net - Full Old-School TUI Command Line Application in C#

问题描述:

I have coded a high performance real-time data data processor, and I have spent WAY too much time trying to make the GUI not to freeze, be responsive, etc. (using async invoke and other gui best practices).

However, my team and I decided to move to a plain old simple and efficient Text-User-Interface and get rid of all the bells and whistles for more efficiency and performance.

So I would like to create a console app that is similar to command lines apps like sql or telnet.

I know how to manage basic arguments and console read/write, but I was wondering how these apps work.
Is there something specific about it ? Just a matter of curiosity. Can I display something like:

MYAPP>Run command1 -arg1 -arg2

>Success !

MYAPP>Show Log

>...

MYAPP>Run command2 -arg1 -arg2

etc.

is the "MYAPP>" prefix just something to be parsed plainly or is there a smarter way to do that ?

EDIT

I have Stumbled upon this TUI library (pic below). But it not complete and not maintained anymore.

If somebody know of something similar I welcome any suggestion.

EDIT 2

curse library seems interesting too, as stated in this topic

网友答案:

The ConsoleDraw library could be of used here.

It's similar to the TUI library you mentioned, but with more controls and still maintained. It is possible to add your own custom controls if you needed them also.

分享给朋友:
您可能感兴趣的文章:
随机阅读: