Lua诅咒使用Luaposix示例

发布于 2025-02-13 16:13:13 字数 339 浏览 0 评论 0原文

据我了解,诅咒已集成到Luaposix项目中。 由于我使用的是非常有限的Linux环境的OpenWrt,并且它可以为Shell运行ASH,因此我想开发一些基于文本的菜单,或者更好地说出在OpenWrt上运行的基于文本的用户界面。

我发现Luaposix 35.1.1可作为Opkg(已经编译)的OpenWRT设备提供。 OpenWRT系统确实运行LUA v5.1.5。

我的问题是在哪里可以找到一个诅咒示例,该示例利用Luaposix制作简单的基于文本的菜单? 我已经搜索了谷歌,没有发现一开始。

为了学习和编码诅咒,找到相关教程或指南确实很方便。

请注意,我不想使用其他库或Luaposix以外的解决方案。

As I understood curses are integrated into the luaposix project.
Since I am using a OpenWRT which is very limited linux environment,and it runs ash for shell, I would like to develop some curses text-based menus, or better to say a textbased user interface that runs on OpenWRT.

I have found that luaposix 35.1.1 is available as an opkg (already compiled) for the OpenWRT device.
The OpenWRT system does run LUA v5.1.5.

My questions is where can I found a curses example that utilizes luaposix for making a simple text based menu?
I have googled and found nothing to start with.

In order to learn and code the curses finding a relevant tutorial or a guide is really handy.

Please note I do not want to use other libraries, or solutions other than luaposix.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

山田美奈子 2025-02-20 16:13:13

我知道诅咒已整合到Luaposix项目中。

lcurses不再集成到luaposix中:

luaposix也包含对诅咒功能的支持,但是现在它拥有自己的 lcurses 再次存储库,在该存储库中分别维护。

- https://github.com/luaposix/luaposix/luaposix

href =“ http://lcurses.github.io/lcurses/examples/curses.lua.html” rel =“ nofollow noreferrer”>示例在文档网站

As I understood curses are integrated into the luaposix project.

lcurses is not integrated into luaposix anymore:

For a while, luaposix contained support for curses functionality too, but now it has its own lcurses repository again, where it is being maintained separately.

- https://github.com/luaposix/luaposix

An example is given on the documentation site.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文