Re:LTUI – A cross platform terminal UI library based on Lua
by drran on Thursday May 07, 2020 @03:53AM
(#23100758)
TekUI does that, see http://tekui.neoscientists.org/tutorials.html
ui = require "tek.ui"
ui.Application:new
{
Children =
{
ui.Window:new
{
Title = "Hello",
Children =
{
ui.Text:new
{
Text = "Hello, World!",
Class = "button",
Mode = "button",
Width = "auto"
}
}
}
}
}:run()
Re:LTUI – A cross platform terminal UI library based on Lua
by renke1 on Thursday May 07, 2020 @04:00AM
(#23100802)
A few years ago I build a small application [1] using react-blessed [0] which is a React renderer for blessed which is similar to ncurses. I think it was pretty easy to create an terminal-based application with it.
[0]: https://github.com/Yomguithereal/react-blessed [1]: https://github.com/renke/overviewer
Re:LTUI – A cross platform terminal UI library based on Lua
by pests on Thursday May 07, 2020 @02:44AM
(#23100368)
I've been a fan of https://github.com/vadimdemedes/ink for awhile. Its based off React with a custom renderer. I like it a lot and find it pretty easy to use.
Based on your experience, how difficult do you think it would be to create a library that does does terminal UI rendering, but declaratively?
Something like this for eg: https://github.com/jtdaugherty/brick