goban - 最小和并发的CUI

网友投稿 576 2022-11-02

goban - 最小和并发的CUI

goban - 最小和并发的CUI

goban - minimal and concurrent CUI

package goban (碁盤, meaning of Go game board in Japanese) provides CUI with simple API.

Hello World

package mainimport ( "context" "github.com/eihigh/goban")func main() { goban.Main(app, view)}func app(_ context.Context, es goban.Events) error { goban.Show() es.ReadKey() return nil}func view() { goban.Screen().Enclose("hello").Prints("Hello World!\nPress any key to exit.")}

Features

Minimal APIIsolated Views and ControllersReceive events from channel instead of event handlersColor with escape sequencesBox drawingsGrid layouts

Status

goban is under active development. The API is subject to change.

TODO

Flexbox layouts More widgets Mouse support

Documentation

See https://godoc.org/github.com/eihigh/goban .

Dependencies

This package is based on github.com/gdamore/tcell .

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:php中的魔术变量
下一篇:算法结构1.插入排序
相关文章

 发表评论

暂时没有评论,来抢沙发吧~