4 days left! Save on skills that make you shine with 40% off 3 months of Coursera Plus. Save now

Pragmatic AI Labs

TUI from Zero

Noah Gift

Instructor: Noah Gift

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

5 hours to complete
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

5 hours to complete
Flexible schedule
Learn at your own pace

What you'll learn

  • Build a pure-Rust terminal-UI framework from the cell buffer up, with byte-deterministic snapshot tests in CI.

  • Apply the Elm-style init/update/view shape and composite layout to build production widgets (CpuGrid, ProcessTable, MemoryBar).

  • Create ptop-mini end-to-end — a Snapshot-fixture-driven process monitor that swaps to a live /proc reader without changing the view function.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

May 2026

Assessments

1 assignment

Taught in English
91% of learners achieved a positive career outcome

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 5 modules in this course

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.

What's included

6 videos6 readings

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.

What's included

6 videos4 readings

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.

What's included

6 videos4 readings

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.

What's included

6 videos4 readings

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.

What's included

4 videos6 readings1 assignment

Instructor

Noah Gift
Pragmatic AI Labs
48 Courses3,456 learners

Offered by

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Frequently asked questions