modify readme

This commit is contained in:
ruki
2018-11-20 22:48:14 +08:00
parent d7c4253d77
commit 4d27104e1c
2 changed files with 24 additions and 18 deletions

View File

@@ -46,6 +46,18 @@ We need install the cross-platform build utility [xmake](https://github.com/tboo
$ xmake $ xmake
``` ```
## Run tests
We need install [luajit](http://luajit.org/) to run tests first.
```console
$ luajit tests\dialog.lua
$ luajit tests\window.lua
$ luajit tests\desktop.lua
$ luajit tests\inputdialog.lua
$ luajit tests\mconfdialog.lua
```
## Examples ## Examples
#### Application #### Application
@@ -126,15 +138,6 @@ end
<img src="https://tboox.org/static/img/ltui/textarea.png" width="70%" /> <img src="https://tboox.org/static/img/ltui/textarea.png" width="70%" />
## Run tests
```console
$ luajit tests\dialog.lua
$ luajit tests\window.lua
$ luajit tests\desktop.lua
$ luajit tests\inputdialog.lua
$ luajit tests\mconfdialog.lua
```
If you want to known more, please refer to: If you want to known more, please refer to:

View File

@@ -45,6 +45,18 @@ LTUI是一个基于lua的跨平台字符终端UI界面库。
$ xmake $ xmake
``` ```
## 运行测试
你需要先安装[luajit](http://luajit.org/)程序去加载运行测试程序:
```console
$ luajit tests\dialog.lua
$ luajit tests\window.lua
$ luajit tests\desktop.lua
$ luajit tests\inputdialog.lua
$ luajit tests\mconfdialog.lua
```
## 例子 ## 例子
#### 应用程序 #### 应用程序
@@ -125,15 +137,6 @@ end
<img src="https://tboox.org/static/img/ltui/textarea.png" width="70%" /> <img src="https://tboox.org/static/img/ltui/textarea.png" width="70%" />
## 运行测试
```console
$ luajit tests\dialog.lua
$ luajit tests\window.lua
$ luajit tests\desktop.lua
$ luajit tests\inputdialog.lua
$ luajit tests\mconfdialog.lua
```
如果你想了解更多,请参考: 如果你想了解更多,请参考: