gyscos/cursive hiện có 4.9k sao trên GitHub, viết chủ yếu bằng Rust. A Text User Interface library for the Rust programming language
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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", |s| s.quit()));
// Starts the event loop.
siv.run();
}
Check out the other examples to get these results, and more:
(Colors may depend on your terminal configuration.)
Tutorials
These tutorials may help you get started with cursive:
Starting with cursive: (1/3)
Starting with cursive: (2/3)
Starting with cursive: (3/3)
Third-party views
Here are a few crates implementing new views for you to use:
cursive-aligned-view: A view wrapper which aligns child views.
cursive-async-view: A loading-screen wrapper.
cursive_calendar_view: A basic calendar view implementation.
cursive-flexi-logger-view: An alternative debug view using flexi_logger.
cursive_hexview: A simple hexview.
cursive-hjkl: Wraps any view to use Vim-like hjkl controls.
cursive-image: A graphical image view. Supported formats include PNG, GIF, JPEG, SVG, and PDF.
cursive-markup: A view that renders HTML or other markup.
cursive-multiplex: A tmux like multiplexer.
cursive-spinner-view: A spinner view.
cursive-split-panel: A split panel view with a movable divider.
cursive_table_view: A basic table view component.
cursive-tabs: Tabs.
cursive-tree: A tree view implementation.
Showcases
Here are some cool applications using cursive:
RustyChat: Chat client made using Rust and Cursive.
checkline: Checkbox line picker from stdin to stdout.
clock-cli: A clock with stopwatch and countdown timer functionalities.
fui: Add CLI & form interface to your program.
game2048-rs: a tui game2048 using Rust and cursive.
git-branchless: Branchless workflow for Git.
grin-tui: Minimal implementation of the MimbleWimble protocol.
kakikun: A paint and ASCII art application for the terminal.
launchk: Manage launchd agents and daemons on macOS.
markline: Marker-based line picker from stdin to stdout.
mythra: CLI to search for music.
ncspot: Cross-platform ncurses Spotify client.
rbmenu-tui: A TUI for bookmark management.
retris: A simple implementation of the classic tetris game.
ripasso: A simple password manager written in Rust.
rusty-man: Browse rustdoc documentation.
saci-rs: Simple API Client Interface.
so: A terminal interface for Stack Overflow.
sudoku-tui: Play sudoku on the command line.
tap: An audio player for the terminal with fuzzy finder.
ttyloop: Clone of the mobile game Loop.
wiki-tui: A simple and easy to use Wikipedia Text User Interface
glues: A simple note-taking app with Git, CSV, and JSON support
Goals
Ease of use. Simple apps should be simple. Complex apps should be manageable.
Linux TTY Compatibility. Colors may suffer, and UTF-8 may be too much, but most features must work properly on a Linux TTY.
Flexibility. This library should be able to handle simple UI scripts, complex real-time applications, or even games.
In particular, it tries to have enough features to recreate these kind of tools:
menuconfig
nmtui
Compatibility
First off, terminals are messy. A small set of features is standard, but beyond that, almost every terminal has its own implementation.
Output
Colors: the basic 8-colors palette should be broadly supported. User-defined colors is not supported in the raw linux TTY, but should work in most terminals, although it's still kinda experimental.
UTF-8: Currently Cursive really expects a UTF-8 locale. It may eventually get patched to support window borders on other locales, but it's not a priority.
There is initial support for wide characters. RTL support is planned, but still very early.
Input
The key_codes example can be a useful tool to see how the library reacts to various key presses.
Keep in mind that if the terminal has shortcuts registered, they probably won't be transmitted to the app.
UTF-8 input should work fine in a unicode-enabled terminal emulator, but raw linux TTY may be more capricious.
gyscos/cursive thuộc nhóm Backend trên TopGit, cùng 4 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về gyscos/cursive ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/gyscos/cursive là nguồn chính thức.
gyscos/cursive có bao nhiêu sao?
gyscos/cursive có 4.9k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/gyscos/cursive. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
gyscos/cursive có phải mã nguồn mở không?
Có — gyscos/cursive phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/gyscos/cursive.
gyscos/cursive có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho gyscos/cursive. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
gyscos/cursive là gì?
gyscos/cursive (gyscos/cursive) là dự án Rust trên GitHub. Theo mô tả gốc: A Text User Interface library for the Rust programming language
gyscos/cursive so với các dự án Backend khác thế nào?
gyscos/cursive được TopGit xếp vào nhóm Backend, với 4.9k sao GitHub và viết bằng Rust. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về cursive?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về cursive.