TUI from Zero teaches you to build a pure-Rust terminal-UI framework from first principles to a working ptop-mini process monitor. Across five modules, you'll learn the wire format of a terminal — cells, ANSI escape sequences, Unicode block elements, and Braille code points — and how CellBuffer and DiffRenderer turn those primitives into a zero-allocation steady state. You'll master the Elm-style init/update/view shape, composite layout with Container/Row/Column, the .prs declarative scene format, and probar snapshot testing so every render byte is deterministic in CI.
The capstone is ptop-mini, a Rust process monitor whose production binary swaps a Snapshot fixture for a live /proc reader without changing one line of the view function. Every widget is gated by a YAML contract and a probar snapshot test, so the framework you build is provable, not merely working. You should be comfortable with intermediate Rust — ownership and borrowing, traits and generics, Result and the ? operator. No prior terminal-UI experience is required.
Build the rendering core of a Rust TUI from first principles. Learn how a terminal is a 2D grid of cells, how double-width Unicode is kept safe, why ANSI escape sequences are the wire format, and how CellBuffer and the Widget trait give you one paint(rect) method that composes everything else.
涵盖的内容
6个视频6篇阅读材料
显示有关单元内容的信息
6个视频•总计10分钟
1.1.1 The Terminal Is A Grid•2分钟
1.1.2 Presentar Cellbuffer•2分钟
1.1.3 Diffrenderer Emits Only Changes•2分钟
1.2.1 The Widget Trait•2分钟
1.2.2 Container Row Column•2分钟
1.2.3 Block And Label•1分钟
6篇阅读材料•总计51分钟
About This Course•10分钟
Key Terms: The Terminal Is a Grid of Cells•10分钟
ELI5 Pixel Graphics•1分钟
Reflection: The Terminal Is a Grid of Cells•10分钟
Key Terms: The Widget Trait — One Method, paint(rect)•10分钟
Reflection: The Widget Trait — One Method, paint(rect)•10分钟
React — Elm-style Event Loop
第 2 单元•小时 后完成
单元详情
Wire user input to state through the Elm Architecture's three pure functions: init, update, and view. Model the counter app as a struct, define Msg as an exhaustive enum, and run crossterm's poll/read loop with raw mode. Map every KeyEvent through a total dispatch function so update never sees noise, and exit cleanly on Esc, Ctrl-C, or q.
涵盖的内容
6个视频4篇阅读材料
显示有关单元内容的信息
6个视频•总计9分钟
2.1.1 Init Update View•2分钟
2.1.2 Counter App•1分钟
2.1.3 Replay Determinism•1分钟
2.2.1 Crossterm Event Loop•2分钟
2.2.2 Keyevent To Msg•2分钟
2.2.3 Ctrl C And Quit•1分钟
4篇阅读材料•总计40分钟
Key Terms: init / update / view — the Elm Shape•10分钟
Reflection: init / update / view — the Elm Shape•10分钟
Key Terms: crossterm's Event Loop•10分钟
Reflection: crossterm's Event Loop•10分钟
Compose — Widgets in Anger
第 3 单元•小时 后完成
单元详情
Compose widgets that do real work — Sparklines from eight Unicode block glyphs, BrailleGraphs at 4x resolution, a CpuGrid that wraps one cell per core, a ProcessTable that scrolls, and a MemoryBar that fills. Each widget is one paint(rect) call; together they form a live system-monitor TUI.
涵盖的内容
6个视频4篇阅读材料
显示有关单元内容的信息
6个视频•总计10分钟
3.1.1 Block Glyph Sparkline•2分钟
3.1.2 Braillegraph Sub Cell•2分钟
3.1.3 Totality Of Glyph•2分钟
3.2.1 Cpu Grid•2分钟
3.2.2 Process Table•2分钟
3.2.3 Memory Bar•1分钟
4篇阅读材料•总计40分钟
Key Terms: Sparkline and BrailleGraph•10分钟
Reflection: Sparkline and BrailleGraph•10分钟
Key Terms: CpuGrid, ProcessTable, MemoryBar•10分钟
Reflection: CpuGrid, ProcessTable, MemoryBar•10分钟
Declare and Verify — YAML Scenes and Probar Tests
第 4 单元•小时 后完成
单元详情
Move from imperative paint calls to declarative scenes. Write .prs files that describe layout, then watch a 200-line recursive-descent compiler reconcile them against your widgets. Lock the look with probar snapshot tests — stringified CellBuffers, inline or file-backed goldens, byte-identical between runs, all running in CI without a TTY.
涵盖的内容
6个视频4篇阅读材料
显示有关单元内容的信息
6个视频•总计9分钟
4.1.1 Why Declarative TUI•1分钟
4.1.2 Prs Format•1分钟
4.1.3 Compile To Widget Tree•1分钟
4.2.1 Snapshot As String•2分钟
4.2.2 Golden Diff•2分钟
4.2.3 Probar Pattern•2分钟
4篇阅读材料•总计40分钟
Key Terms: Declarative TUI and the .prs Format•10分钟
Reflection: YAML Scenes and the .prs Compiler•10分钟
Key Terms: Snapshot Testing with probar•10分钟
Reflection: probar Snapshot Testing•10分钟
Untitled Module
第 5 单元•小时 后完成
单元详情
Bring everything together: a deterministic Snapshot fixture feeds a single pure view that composes CpuGrid, Sparkline, MemoryBar, and ProcessTable into one ptop-mini dashboard, then swap the fixture for a /proc reader to run the same view live.
When will I have access to the lectures and assignments?
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
What will I get if I subscribe to this Specialization?
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Is financial aid available?
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.