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.
Das ist alles enthalten
6 Videos6 Lektüren
Infos zu Modulinhalt anzeigen
6 Videos•Insgesamt 10 Minuten
1.1.1 The Terminal Is A Grid•2 Minuten
1.1.2 Presentar Cellbuffer•2 Minuten
1.1.3 Diffrenderer Emits Only Changes•2 Minuten
1.2.1 The Widget Trait•2 Minuten
1.2.2 Container Row Column•2 Minuten
1.2.3 Block And Label•1 Minute
6 Lektüren•Insgesamt 51 Minuten
About This Course•10 Minuten
Key Terms: The Terminal Is a Grid of Cells•10 Minuten
ELI5 Pixel Graphics•1 Minute
Reflection: The Terminal Is a Grid of Cells•10 Minuten
Key Terms: The Widget Trait — One Method, paint(rect)•10 Minuten
Reflection: The Widget Trait — One Method, paint(rect)•10 Minuten
React — Elm-style Event Loop
Modul 2•1 Stunde abzuschließen
Moduldetails
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.
Das ist alles enthalten
6 Videos4 Lektüren
Infos zu Modulinhalt anzeigen
6 Videos•Insgesamt 9 Minuten
2.1.1 Init Update View•2 Minuten
2.1.2 Counter App•1 Minute
2.1.3 Replay Determinism•1 Minute
2.2.1 Crossterm Event Loop•2 Minuten
2.2.2 Keyevent To Msg•2 Minuten
2.2.3 Ctrl C And Quit•1 Minute
4 Lektüren•Insgesamt 40 Minuten
Key Terms: init / update / view — the Elm Shape•10 Minuten
Reflection: init / update / view — the Elm Shape•10 Minuten
Key Terms: crossterm's Event Loop•10 Minuten
Reflection: crossterm's Event Loop•10 Minuten
Compose — Widgets in Anger
Modul 3•1 Stunde abzuschließen
Moduldetails
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.
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.
Das ist alles enthalten
6 Videos4 Lektüren
Infos zu Modulinhalt anzeigen
6 Videos•Insgesamt 9 Minuten
4.1.1 Why Declarative TUI•1 Minute
4.1.2 Prs Format•1 Minute
4.1.3 Compile To Widget Tree•1 Minute
4.2.1 Snapshot As String•2 Minuten
4.2.2 Golden Diff•2 Minuten
4.2.3 Probar Pattern•2 Minuten
4 Lektüren•Insgesamt 40 Minuten
Key Terms: Declarative TUI and the .prs Format•10 Minuten
Reflection: YAML Scenes and the .prs Compiler•10 Minuten
Key Terms: Snapshot Testing with probar•10 Minuten
Reflection: probar Snapshot Testing•10 Minuten
Untitled Module
Modul 5•2 Stunden abzuschließen
Moduldetails
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.
Das ist alles enthalten
4 Videos6 Lektüren1 Aufgabe
Infos zu Modulinhalt anzeigen
4 Videos•Insgesamt 9 Minuten
Snapshot Fixture•1 Minute
View Composes•1 Minute
Live Loop vs CI•2 Minuten
Demo ptop-mini•4 Minuten
6 Lektüren•Insgesamt 60 Minuten
Key Terms: The ptop-mini Snapshot Fixture•10 Minuten
Reflection: The ptop-mini Snapshot Fixture•10 Minuten
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.