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-09 19:17:50
推送於2025-06-18 14:11:46
最后一次提交2020-07-09 09:43:34
發布數79
最新版本名稱cursive-core-v0.4.6 (發布於 )
第一版名稱0.0.1 (發布於 )
用户参与
星數4.6k
關注者數37
派生數256
提交數1.8k
已啟用問題?
問題數546
打開的問題數189
拉請求數178
打開的拉請求數18
關閉的拉請求數35
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?