C-sharp-console-gui-framework icon indicating copy to clipboard operation
C-sharp-console-gui-framework copied to clipboard

Alternative frameworks

Open jzabroski opened this issue 4 years ago • 8 comments

Found out about a parallel project to yours, here: https://parall.ax/blog/view/3131/vtop-revisiting-the-activity-monitor

Quote:

I decided to write vtop using Node.js. It’s built on Chrome’s V8 JavaScript engine and allows you to write fast and scalable applications. This choice could pave the way for a web-based frontend to be added in the future. JavaScript is coming into it’s own – it’s no longer the scrappy, badly implemented language that everyone used to make sparkles follow your cursor on your Geocities page. Node.js has evolved the language – it’s now a a fully formed toolchain with a thriving community. There’s a Node package for just about anything you can think of, you can really hit the ground running by picking up other people’s modules instead of writing from scratch.

At the beginning of the rewrite, I made an outline using simple box drawing characters that I used to love playing with in my early DOS programming days. While this worked ok, I felt there might be an easier way. I’d seen ncurses and wondered if there was anything more modern kicking about. I eventually came across Blessed.

Blessed abstracts away the complexities of drawing a GUI in the terminal. You tell it where to draw boxes, and they are automatically resized based on the terminal width and height. You can also listen to scroll wheel and click events to enable even easier interaction. I’d highly recommend you check it out.

jzabroski avatar Nov 05 '19 10:11 jzabroski

Never ever compare C# to JavaScript again ;-)

bpiepiora avatar Nov 05 '19 16:11 bpiepiora

I think it's good to keep track of "competition", so that:

  1. Search engine results optimize for better libraries and languages ;-)
  2. "Amateurs imitate, mature artists steal." Take the best ideas from Blessed and re-implement them in ConsoleGUI
  3. See what projects use Blessed (e.g. parallax's vtop) for inspiration on implementing tools on top of ConsoleGUI - the best kind of regression test suite!

jzabroski avatar Nov 05 '19 16:11 jzabroski

@jzabroski Good one. Actually htop was something that inspired to create this framework in the first place. Now I see that I wasn't the only one inspired by it :D Though I don't think the vtop is a framework, it seems more like a single purpose app (a very nice one nevertheless).

@bpiepiora <pokerface> <looks nervously at his repos where half of them is written js>

TomaszRewak avatar Nov 05 '19 18:11 TomaszRewak

I wasn't saying vtop is a framework, but rather that it uses the Blessed framework.

jzabroski avatar Nov 05 '19 18:11 jzabroski

Ahh, sorry, that was a long day :D I will definitely check it out.

TomaszRewak avatar Nov 05 '19 19:11 TomaszRewak

Instead of updating the README I will leave this thread open so that there is an easily accessible place to find and discuss other alternatives to this project. Other being: GUI.cs and SadConsole

TomaszRewak avatar Dec 14 '19 15:12 TomaszRewak

I'm working on XAML alternative with bindings, dependency objects, animation, styling etc

I've uploaded short video here https://youtu.be/Lxx9Icevusc

Code looks like this: image

I'm thinking to set it up at github to find some help.

jinek avatar Nov 03 '21 23:11 jinek

Colleagues. I've just published the repository, consider please supporting it: https://github.com/jinek/Consolonia It re-uses all the power of Avalonia UI and potentially allows using of 3d-party XAML controls

jinek avatar Nov 04 '21 17:11 jinek