Building UIs in Terminal with Laravel Prompts
summary
Demos how Laravel Prompts plus a tiny helper library Chewy render real text UIs by treating the UI as a string function of state, showing exact code for key listeners, word wrap, terminal width/height handling, column zipping and alternate screen rendering. Builds a speaker directory with up/down selection, pinned hotkey help, and a T to open Twitter, shows problems (auto wrap, cursor hiding) and fixes so the app works reliably in a real terminal.
AI-written summary · about
chapters (15)
- 0:00Introduction and welcome
- 1:57What are Laravel Prompts
- 4:46TUI fundamentals
- 7:14Setting up Prompts app
- 10:05Building a counter app
- 12:13Handling user input
- 14:20Terminal window constraints
- 17:07Building speaker directory
- 20:17Selecting speakers
- 23:27Displaying speaker details
- 25:34Immersive full-screen app
- 26:39Adding hotkeys
- 28:22Opening Twitter profiles
- 29:03Advanced TUI examples
- 30:09Q&A and meetup discussion
related talks
26mBuild Beautiful CLI Apps Using Termwind
33mMaking The Terminal Great Again
35mUnveiling Laravel Prompts
29mBuilding awesome CLI apps with PHP
38mTerminal Whispering
44mExploring and Building Cross-Platform TUIs
25mThe Terminal is the New Browser: Building Rich TUIs with Textual
44mTricking Out the Terminal: An Introduction
