I'm running a terminal application in /dev/pts/X terminal that has its own console as:

What I need is to run commands specific to this application but from another terminal.
Using ttyecho does not work as it interacts with the shell not with the application running on the shell.