goban

goban -- 最小化和并发的 CUI。「goban - minimal and concurrent CUI」

  • 所有者: eihigh/goban
  • 平台: Linux, Mac, Windows
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

goban - minimal and concurrent CUI

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

Hello World

package main

import (
	"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 API
  • Isolated Views and Controllers
  • Receive events from channel instead of event handlers
  • Color with escape sequences
  • Box drawings
  • Grid 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 .

主要指標

概覽
名稱與所有者eihigh/goban
主編程語言Go
編程語言Go (語言數: 1)
平台Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2019-07-28 07:50:52
推送於2019-08-18 09:49:47
最后一次提交2019-08-01 19:22:21
發布數0
用户参与
星數55
關注者數2
派生數4
提交數16
已啟用問題?
問題數3
打開的問題數2
拉請求數2
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?