I have a virtual terminal inside my electron app that is built using node-pty and xterm. Inside that terminal, at one point, I\'m running a java file. Is there a way to dete