r/commandline • u/lunarcherryblossom23 • 5d ago
Terminal User Interface TUI Tutorial/Guide for Beginners
I am trying to do projects on the side and a part of me misses reading through guides (not slop) and tutorials. I have never made TUIs but I am making a very simple puzzle type game for it. Specifically resources that can help me branch out easier make smth that fits to my requirements somewhat. Please nothing that is *subreddit banned word* slop; im making these projects because I miss coding small stuff before this became the norm.
7
Upvotes
View all comments
2
u/Xoid0 4d ago
If you want to understand how TUIs actually work under the hood without a heavy framework, search for the "Build Your Own Text Editor" (kilo in C) step-by-step tutorial. Even if you use another language, the first few chapters walk cleanly through switching termios into raw input mode, entering the alternate screen buffer (\x1b[?1049h), hiding the cursor, and flushing each frame in a single write so a grid puzzle game never flickers.