Cursive

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

Github stars Tracking Chart

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",

Main metrics

Overview
Name With Ownergyscos/cursive
Primary LanguageRust
Program languageRust (Language Count: 2)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2015-05-09 19:17:50
Pushed At2025-06-18 14:11:46
Last Commit At2020-07-09 09:43:34
Release Count79
Last Release Namecursive-core-v0.4.6 (Posted on )
First Release Name0.0.1 (Posted on )
用户参与
Stargazers Count4.6k
Watchers Count37
Fork Count256
Commits Count1.8k
Has Issues Enabled
Issues Count546
Issue Open Count189
Pull Requests Count178
Pull Requests Open Count18
Pull Requests Close Count35
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private