image.png
需要这个东西的初衷 :
- nodejs (vue/react) cli 创建模板的询问过程无法回退 , 只能重头开始 ;
- linux各种运维命令行根本记不住 , 需要一个界面来记录常用命令 ;
我们的需求 :
- 鼠标/光标支持 (表单)
- 键盘支持
- 常用组件 / 高阶组件(Tree, List, Tab, Table, 图表...)
- 滚动条组件(ScrollView) -- 这个单独强调
- 跨平台 , 支持xshell 等ssh工具.
C# dotnet core
https://github.com/migueldeicaza/gui.cs -- 目前体验最好 , 但是滚动条还有一些bug.
Python
https://github.com/urwid/urwid -- 只支持 unix类 系统 , 放弃
https://github.com/prompt-toolkit/python-prompt-toolkit -- 有滚动demo , 但是滚动条事件未实现 , 更新乏力.
Nodejs
https://github.com/chjj/blessed -- window cmd 的鼠标不支持 , 而且6年未更新 .
https://github.com/yaronn/blessed-contrib -- 基于上面一个 .
Rust
https://github.com/fdehau/tui-rs -- 没看见ScrollView , 但是支持滚动
Swift --不考虑
https://github.com/migueldeicaza/TermKit
Go --不考虑
https://github.com/VladimirMarkelov/clui
https://github.com/nsf/termbox-go
https://github.com/jroimartin/gocui