redox-os/termion được TopGit xếp vào nhóm dự án backend, với 2.2k sao trên GitHub, viết chủ yếu bằng Rust. Mirror of https://gitlab.redox-os.org/redox-os/termion
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.
Termion is a pure Rust, bindless library for low-level handling, manipulating
and reading information about terminals. This provides a full-featured
alternative to Termbox.
Termion aims to be simple and yet expressive. It is bindless, meaning that it
is not a front-end to some other library (e.g., ncurses or termbox), but a
standalone library directly talking to the TTY.
Termion is quite convenient, due to its complete coverage of essential TTY
features, providing one consistent API. Termion is rather low-level containing
only abstraction aligned with what actually happens behind the scenes. For
something more high-level, refer to inquirer-rs, which uses Termion as backend.
Termion generates escapes and API calls for the user. This makes it a whole lot
cleaner to use escapes.
Supports Redox, Mac OS X, BSD, and Linux (or, in general, ANSI terminals).
A note on stability
This crate is stable.
Cargo.toml
[dependencies]
termion = "*"
3.0.0 to 4.0.0 guide
A change is only necessary if you were matching on all variants of the MouseEvent enum without a wildcard.
In this case, you need to either handle the two new variants, MouseLeft and MouseRight, or add a wildcard.
2.0.0 to 3.0.0 guide
Changes are only required if you were using IntoRawMode on generic terminals W: Write. Now, terminal
is also required to implement AsFd trait. So replacing generic bounds with W: Write + AsFd
should be sufficient.
1.0.0 to 2.0.0 guide
1.0.0
2.0.0
AlternativeScreen::from(x)
x.into_alternative_screen()
0.1.0 to 1.0.0 guide
This sample table gives an idea of how to go about converting to the new major
version of Termion.
0.1.0
1.0.0
use termion::IntoRawMode
use termion::raw::IntoRawMode
use termion::TermRead
use termion::input::TermRead
stdout.color(color::Red);
write!(stdout, "{}", color::Fg(color::Red));
stdout.color_bg(color::Red);
write!(stdout, "{}", color::Bg(color::Red));
stdout.goto(x, y);
write!(stdout, "{}", cursor::Goto(x, y));
color::rgb(r, g, b);
color::Rgb(r, g, b) (truecolor)
x.with_mouse()
MouseTerminal::from(x)
Features
Raw mode.
TrueColor.
256-color mode.
Cursor movement.
Text formatting.
Console size.
TTY-only stream.
Control sequences.
Termios control.
Password input.
Redox support.
Safe isatty wrapper.
Panic-free error handling.
Special keys events (modifiers, special keys, etc.).
redox-os/termion 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ề redox-os/termion ở đâ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/redox-os/termion là nguồn chính thức.
redox-os/termion có phải mã nguồn mở không?
Có — redox-os/termion 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/redox-os/termion.
redox-os/termion là gì?
redox-os/termion (redox-os/termion) là dự án Rust trên GitHub. Theo mô tả gốc: Mirror of https://gitlab.redox-os.org/redox-os/termion
redox-os/termion so với các dự án Backend khác thế nào?
redox-os/termion được TopGit xếp vào nhóm Backend, với 2.2k 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.
Vì sao redox-os/termion được xếp vào nhóm Backend?
TopGit xếp redox-os/termion vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "rust", "terminal", "tty"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc termion có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về termion.