Zig NEWS

Discussion on: Want to create a TUI application? - The Basics of "Uncooked" Terminal IO

Collapse
kristoff profile image
Loris Cro

Thanks for sharing! I didn't know that tcsetattr can also flush unread input. A while ago I was writing a single keypress confirmation "wizard" for Bork and I was worried that somebody could press two keys at once by mistake and instantly skip past a screen.

I guess placing a .FLUSH call between screens could help mitigate this problem.