logoalt Hacker News

inatreecrown2today at 6:05 AM1 replyview on HN

The nice thing about TUIs is: they are platform independent. Whereas with SwiftUI apps you are bound to macOS.


Replies

raincoletoday at 7:03 AM

TUI apps are only platform independent if you make them so.

GUI apps are only platform independent if you(r framework) make them so.

It's a quite common illusion that TUI apps are "automatically" platform independent. Even knowing which terminal emulator intercepts which shortcuts and how they handle width change, control character, mouse events, images, etc and design around them is not a trivial task.

On the other hand, making platform independent GUI apps haven't been easier. Just use Electron. Yes, performance blahblah, but thousands of Electron apps work on millions of machines just fine.

show 1 reply