Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full Old-School TUI Command Line Application in C#

Tags:

c#

.net

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.

enter image description here

EDIT 2
curse library seems interesting too, as stated in this topic

like image 530
Mehdi LAMRANI Avatar asked Mar 18 '26 23:03

Mehdi LAMRANI


1 Answers

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.

like image 195
Hayden Avatar answered Mar 20 '26 12:03

Hayden



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!