The problem with TUI's, that we have all Stockholm syndrom'd ourselves, is that I can't use the mouse cursor to click to the position on the screen and edit the command line.
I’ve built textual tuis (as in the Python library) and it responds to clicks just fine.
You can use the mouse with TUIs build on the Charm stack
https://github.com/lrstanley/bubblezone
There are a lot of components that resemble things you find in web component libraries
It is possible. Terminals have supported mouse interactions for a long time.