News for hackers. Stuff that matters.
Re:TUIs by RobertMiller on Thursday March 17, 2022 @11:18AM (#30712068)
> But then creating TUIs now require as much complexity as creating single window GUIs (requiring handling events outside the program)

No way dude. All you need to do is catch SIGWINCH and then ioctl/TIOCGWINSZ to get the new size. Back when I was into roguelike development, responding to the terminal resizing took scarcely more than a half dozen lines of C. I wish I knew of a GUI system this simple.

Re:TUIs by Karrot_Kream on Thursday March 17, 2022 @03:33PM (#30715020)
Most GUI systems handle redrawing and resizing for you. Likewise you may need to catch some events, but that's it. Which GUI are you talking about?
Re:TUIs by RobertMiller on Thursday March 17, 2022 @09:37PM (#30717809)
It's not redrawing/resizing with a GUI that's the matter, it's the whole of it. TUIs are easy to create without much investment in learning a whole GUI system.
Re:TUIs by Karrot_Kream on Saturday March 19, 2022 @07:26PM (#30738499)
That's assuming you find a TUI easier to deal with. I guess for the I-use-Arch crowd, sure, but anything more than just printing out lines of text IMO makes using VTs a pain. And if I'm just outputting text, using GTK or Qt is more than fine.