CommandBox CLI Curses like application

5 views
Skip to first unread message

Omar Almeida

unread,
Jul 22, 2020, 4:17:26 PM7/22/20
to CommandBox
Hi Fellows,
Is it possible in some way to create full Curses applications using CommandBox with tables widgets, spinner, dialogs, menus? 
See attached screenshots.
Thanks in advance,
Omar

Capture.PNG

Capture2.PNG



Brad Wood

unread,
Jul 22, 2020, 4:26:00 PM7/22/20
to comma...@ortussolutions.com
Yes it's possible, but there aren't really any helpers built for it at this time.  You'd need to manually construct all of the output yourself including redrawing the screen when necessary.  You can see the "snake" game for a simple example.  

It would be an interesting module for CommandBox to support stuff like this better, but I'm not sure what the API for it would be nor do I have the time or need to work on it myself.

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 



--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/7be471f1-e4a6-416c-b7e5-a77896f85991o%40ortussolutions.com.

Omar Almeida

unread,
Jul 22, 2020, 4:28:33 PM7/22/20
to comma...@ortussolutions.com
Ok Brad,
I'll try to create some.
Thanks a lot,
Omar


From: Brad Wood <bdw...@gmail.com>
Sent: Wednesday, July 22, 2020, 17:26
To: comma...@ortussolutions.com
Subject: Re: CommandBox CLI Curses like application

Brad Wood

unread,
Jul 22, 2020, 4:33:23 PM7/22/20
to comma...@ortussolutions.com
Another thing to check would be if the JLine library that we use has any built in support for this.  The matainer mentioned wanting to build some support a few years back, but I never checked back to see if he had added any.

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 


Omar Almeida

unread,
Jul 22, 2020, 4:44:05 PM7/22/20
to CommandBox
I was checking JLine3 source code on github and as far as i checked there is no support for such thing.
I'll search on the internet if someone made some similar.

Thanks!
Omar
To unsubscribe from this group and stop receiving emails from it, send an email to comma...@ortussolutions.com.

--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to comma...@ortussolutions.com.

--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to comma...@ortussolutions.com.
Reply all
Reply to author
Forward
0 new messages