我正在尝试创建一个在BB10设备/模拟器上运行的简单终端应用程序 . 我已经浏览了所有可用的演示/示例应用程序:
http://developer.blackberry.com/native/
我可以't seem to find a way to have an application run as a console/terminal/tty-interface on the BB10 device I'开发 . 我希望移植一些简单的控制台游戏(即:可能是一个简单的东西,如"Hunt the Wumpus",http://en.wikipedia.org/wiki/Hunt_the_Wumpus),然后也可能在Rogue或Nethack端口上进行破解(希望不必依赖于ncurses库(http://en.wikipedia.org/wiki/Ncurses),但是如果我必须依赖ncurses就可以了 . 它只是让我不必编写额外的接口代码) .
有人可以提供一个简短的例子,说明我需要在基本的BB10应用程序中编写什么,打开一个带有颜色支持的黑白终端?它可以很短,只是我必须粘贴到一个空项目中 .
先感谢您!
1 回答
干得好:
https://github.com/blackberry/NDK-Samples/tree/master/HelloWorldDisplay
它列在底部附近 .