[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5491":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":21,"defaultBranch":22,"hasWiki":20,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},5491,"tui-rs","fdehau\u002Ftui-rs","fdehau","Build terminal user interfaces and dashboards using Rust","",null,"Rust",10876,484,10873,0,1,8,43.06,"MIT License",true,false,"master",[24,25,26,27],"dashboard","rust","terminal","tui","2026-06-12 02:01:11","# tui-rs\n\n⚠️ **August 2023: This crate is no longer maintained. See https:\u002F\u002Fgithub.com\u002Fratatui-org\u002Fratatui for an actively maintained fork.** ⚠️\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fworkflows\u002FCI\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Factions?query=workflow%3ACI+)\n[![Crate Status](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Ftui.svg)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Ftui)\n[![Docs Status](https:\u002F\u002Fdocs.rs\u002Ftui\u002Fbadge.svg)](https:\u002F\u002Fdocs.rs\u002Fcrate\u002Ftui\u002F)\n\n\u003Cimg src=\".\u002Fassets\u002Fdemo.gif\" alt=\"Demo cast under Linux Termite with Inconsolata font 12pt\">\n\n`tui-rs` is a [Rust](https:\u002F\u002Fwww.rust-lang.org) library to build rich terminal\nuser interfaces and dashboards. It is heavily inspired by the `Javascript`\nlibrary [blessed-contrib](https:\u002F\u002Fgithub.com\u002Fyaronn\u002Fblessed-contrib) and the\n`Go` library [termui](https:\u002F\u002Fgithub.com\u002Fgizak\u002Ftermui).\n\nThe library supports multiple backends:\n  - [crossterm](https:\u002F\u002Fgithub.com\u002Fcrossterm-rs\u002Fcrossterm) [default]\n  - [termion](https:\u002F\u002Fgithub.com\u002Fticki\u002Ftermion)\n\nThe library is based on the principle of immediate rendering with intermediate\nbuffers. This means that at each new frame you should build all widgets that are\nsupposed to be part of the UI. While providing a great flexibility for rich and\ninteractive UI, this may introduce overhead for highly dynamic content. So, the\nimplementation try to minimize the number of ansi escapes sequences generated to\ndraw the updated UI. In practice, given the speed of `Rust` the overhead rather\ncomes from the terminal emulator than the library itself.\n\nMoreover, the library does not provide any input handling nor any event system and\nyou may rely on the previously cited libraries to achieve such features.\n\n**I'm actively looking for help maintaining this crate. See [this issue](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fissues\u002F654)**\n\n### Rust version requirements\n\nSince version 0.17.0, `tui` requires **rustc version 1.56.1 or greater**.\n\n### [Documentation](https:\u002F\u002Fdocs.rs\u002Ftui)\n\n### Demo\n\nThe demo shown in the gif can be run with all available backends.\n\n```\n# crossterm\ncargo run --example demo --release -- --tick-rate 200\n# termion\ncargo run --example demo --no-default-features --features=termion --release -- --tick-rate 200\n```\n\nwhere `tick-rate` is the UI refresh rate in ms.\n\nThe UI code is in [examples\u002Fdemo\u002Fui.rs](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fdemo\u002Fui.rs) while the\napplication state is in [examples\u002Fdemo\u002Fapp.rs](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fdemo\u002Fapp.rs).\n\nIf the user interface contains glyphs that are not displayed correctly by your terminal, you may want to run\nthe demo without those symbols:\n\n```\ncargo run --example demo --release -- --tick-rate 200 --enhanced-graphics false\n```\n\n### Widgets\n\nThe library comes with the following list of widgets:\n\n  * [Block](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fblock.rs)\n  * [Gauge](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fgauge.rs)\n  * [Sparkline](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fsparkline.rs)\n  * [Chart](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fchart.rs)\n  * [BarChart](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fbarchart.rs)\n  * [List](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Flist.rs)\n  * [Table](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Ftable.rs)\n  * [Paragraph](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fparagraph.rs)\n  * [Canvas (with line, point cloud, map)](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Fcanvas.rs)\n  * [Tabs](https:\u002F\u002Fgithub.com\u002Ffdehau\u002Ftui-rs\u002Fblob\u002Fv0.19.0\u002Fexamples\u002Ftabs.rs)\n\nClick on each item to see the source of the example. Run the examples with with \ncargo (e.g. to run the gauge example `cargo run --example gauge`), and quit by pressing `q`.\n\nYou can run all examples by running `cargo make run-examples` (require\n`cargo-make` that can be installed with `cargo install cargo-make`).\n\n### Third-party widgets\n\n* [tui-logger](https:\u002F\u002Fgithub.com\u002Fgin66\u002Ftui-logger)\n* [tui-textarea](https:\u002F\u002Fgithub.com\u002Frhysd\u002Ftui-textarea): simple yet powerful multi-line text editor widget supporting several key shortcuts, undo\u002Fredo, text search, etc.\n* [tui-rs-tree-widgets](https:\u002F\u002Fgithub.com\u002FEdJoPaTo\u002Ftui-rs-tree-widget): widget for tree data structures.\n\n### Apps using tui\n\n* [spotify-tui](https:\u002F\u002Fgithub.com\u002FRigellute\u002Fspotify-tui)\n* [bandwhich](https:\u002F\u002Fgithub.com\u002Fimsnif\u002Fbandwhich)\n* [kmon](https:\u002F\u002Fgithub.com\u002Forhun\u002Fkmon)\n* [gpg-tui](https:\u002F\u002Fgithub.com\u002Forhun\u002Fgpg-tui)\n* [ytop](https:\u002F\u002Fgithub.com\u002Fcjbassi\u002Fytop)\n* [zenith](https:\u002F\u002Fgithub.com\u002Fbvaisvil\u002Fzenith)\n* [bottom](https:\u002F\u002Fgithub.com\u002FClementTsang\u002Fbottom)\n* [oha](https:\u002F\u002Fgithub.com\u002Fhatoo\u002Foha)\n* [gitui](https:\u002F\u002Fgithub.com\u002Fextrawurst\u002Fgitui)\n* [rust-sadari-cli](https:\u002F\u002Fgithub.com\u002F24seconds\u002Frust-sadari-cli)\n* [desed](https:\u002F\u002Fgithub.com\u002FSoptikHa2\u002Fdesed)\n* [diskonaut](https:\u002F\u002Fgithub.com\u002Fimsnif\u002Fdiskonaut)\n* [tickrs](https:\u002F\u002Fgithub.com\u002Ftarkah\u002Ftickrs)\n* [rusty-krab-manager](https:\u002F\u002Fgithub.com\u002Faryakaul\u002Frusty-krab-manager)\n* [termchat](https:\u002F\u002Fgithub.com\u002Flemunozm\u002Ftermchat)\n* [taskwarrior-tui](https:\u002F\u002Fgithub.com\u002Fkdheepak\u002Ftaskwarrior-tui)\n* [gping](https:\u002F\u002Fgithub.com\u002Forf\u002Fgping\u002F)\n* [Vector](https:\u002F\u002Fvector.dev)\n* [KDash](https:\u002F\u002Fgithub.com\u002Fkdash-rs\u002Fkdash)\n* [xplr](https:\u002F\u002Fgithub.com\u002Fsayanarijit\u002Fxplr)\n* [minesweep](https:\u002F\u002Fgithub.com\u002Fcpcloud\u002Fminesweep-rs)\n* [Battleship.rs](https:\u002F\u002Fgithub.com\u002Fdeepu105\u002Fbattleship-rs)\n* [termscp](https:\u002F\u002Fgithub.com\u002Fveeso\u002Ftermscp)\n* [joshuto](https:\u002F\u002Fgithub.com\u002Fkamiyaa\u002Fjoshuto)\n* [adsb_deku\u002Fradar](https:\u002F\u002Fgithub.com\u002Fwcampbell0x2a\u002Fadsb_deku#radar-tui)\n* [hoard](https:\u002F\u002Fgithub.com\u002FHyde46\u002Fhoard)\n* [tokio-console](https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Fconsole): a diagnostics and debugging tool for asynchronous Rust programs.\n* [hwatch](https:\u002F\u002Fgithub.com\u002Fblacknon\u002Fhwatch): a alternative watch command that records the result of command execution and can display its history and diffs.\n* [ytui-music](https:\u002F\u002Fgithub.com\u002Fsudipghimire533\u002Fytui-music): listen to music from youtube inside your terminal.\n* [mqttui](https:\u002F\u002Fgithub.com\u002FEdJoPaTo\u002Fmqttui): subscribe or publish to a MQTT Topic quickly from the terminal.\n* [meteo-tui](https:\u002F\u002Fgithub.com\u002F16arpi\u002Fmeteo-tui): french weather via the command line.\n* [picterm](https:\u002F\u002Fgithub.com\u002Fksk001100\u002Fpicterm): preview images in your terminal.\n* [gobang](https:\u002F\u002Fgithub.com\u002FTaKO8Ki\u002Fgobang): a cross-platform TUI database management tool.\n* [oxker](https:\u002F\u002Fgithub.com\u002Fmrjackwills\u002Foxker): a simple tui to view & control docker containers.\n* [trippy](https:\u002F\u002Fgithub.com\u002Ffujiapple852\u002Ftrippy): a network diagnostic tool.\n* [cotp](https:\u002F\u002Fgithub.com\u002Freplydev\u002Fcotp): a trustworthy, encrypted, command-line TOTP\u002FHOTP authenticator app with import functionality.\n* [hg-tui](https:\u002F\u002Fgithub.com\u002Fkaixinbaba\u002Fhg-tui): view [hellogithub.com](https:\u002F\u002Fhellogithub.com\u002F) website on the terminal.\n\n### Alternatives\n\nYou might want to checkout [Cursive](https:\u002F\u002Fgithub.com\u002Fgyscos\u002FCursive) for an\nalternative solution to build text user interfaces in Rust.\n\n## License\n\n[MIT](LICENSE)\n","`tui-rs` 是一个使用 Rust 语言构建终端用户界面和仪表盘的库。它支持多种后端（如 crossterm 和 termion），并基于即时渲染与中间缓冲的原则，允许开发者在每一帧中构建所有需要显示的小部件，从而提供高度灵活且交互性强的界面设计能力。尽管对于高度动态的内容可能会引入一些开销，但通过优化 ANSI 转义序列的生成，该库在实践中表现得相当高效。需要注意的是，`tui-rs` 本身不处理输入或事件，这些功能需依赖外部库实现。此项目适用于需要在命令行环境中创建复杂图形界面的应用场景，例如监控工具、日志查看器等。不过，请注意该项目已不再维护，建议关注其活跃分叉 `ratatui`。",2,"2026-06-11 03:03:39","top_language"]