i feel if you're going to write a TUI app in the year of our lord 2024, it's far better to write an Emacs package instead.
you get the same benefits of text-first and keyboard-first operation, composability, etc. but you also get better accessibility and internationalization.
e.g there's no terminal emulator i've used that supports the Devanagari or Gurumukhi scripts properly. sometimes i end up breaking my terminal because i opened a Markdown file with some Hindi text in Vim. but GUI versions of Emacs can handle those scripts perfectly.
terminal apps exclude people. Emacs gives you the same powerful features and works for everybody!