Yomguithereal / react-blessed

A react renderer for blessed.
MIT License
4.45k stars 177 forks source link

Example for Midnight Commander-like interface? #94

Open dandrei opened 5 years ago

dandrei commented 5 years ago

Hey everyone,

I wonder how easy it is to create a Midnight-Commander like interface (link).

It would need two boxes side by side, each with a table with at least 2 columns. People should navigate with up/down arrows and Tab from one side to the other.

On the bottom, there would be a list of possible commands to do with the currently selected element. There'd also be a need to show alert and text prompt boxes.

Mouse support would be cool as well. Has someone built something like this yet? Thanks!

Yomguithereal commented 5 years ago

Hello @dandrei. I am sure this is fairly doable, since blessed allows you to create such interfaces. However I would not say it will be too easy. I expect unforeseen roadblocks :).

Has someone built something like this yet?

Yes, I remember CLI UIs built by someone to administer SQL databases, but I don't recall the name.

lirantal commented 5 years ago

May not be as close as you might think to Midnight Commander but I've built dockly with blessed and blessed-contrib (wasn't familiar back then with react-blessed): https://github.com/lirantal/dockly

image

It makes use of grids to include several list tables, navigates between them, has pop-ups etc.

dandrei commented 5 years ago

Thanks @lirantal, looks cool, will check it out!

viktor-podzigun commented 5 years ago

I'm currently working on this type of application. Its console File and Archive manager. You can check it here: FAR.js

Hopefully you can find it useful.