Cursive

Rust 编程语言的一个文本用户界面库。「A Text User Interface library for the Rust programming language」

Github星跟踪图

Cursive

crates.io
Build Status (travis)
Build status (appveyor)
MIT licensed
Gitter chat

Cursive is a TUI (Text User Interface) library for rust. It uses ncurses by default, but other backends are available.

It allows you to build rich user interfaces for terminal applications.

Documentation

It is designed to be safe and easy to use:

[dependencies]
cursive = "0.14"

Or to use the latest git version:

[dependencies]
cursive = { git = "https://github.com/gyscos/cursive" }

(You will also need ncurses installed.)

use cursive::Cursive;
use cursive::views::{Dialog, TextView};

fn main() {
    // Creates the cursive root - required for every application.
    let mut siv = Cursive::default();

    // Creates a dialog with a single "Quit" button
    siv.add_layer(Dialog::around(TextView::new("Hello Dialog!"))
                         .title("Cursive")
                         .button("Quit",

主要指标

概览
名称与所有者gyscos/cursive
主编程语言Rust
编程语言Rust (语言数: 2)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2015-05-10 03:17:50
推送于2025-11-08 21:13:45
最后一次提交2020-07-10 00:43:34
发布数79
最新版本名称cursive-core-v0.4.6 (发布于 )
第一版名称0.0.1 (发布于 )
用户参与
星数4.7k
关注者数34
派生数258
提交数1.8k
已启用问题?
问题数550
打开的问题数190
拉请求数189
打开的拉请求数18
关闭的拉请求数34
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?