I am creating a Firefox extension that calls a Linux shared library via the js-ctypes mechanism. I want my extension to display debug information on a standard terminal by calling a function in my shared library which then simply calls printf() to display the debug string on a terminal.
However, my application has no terminal. So, is there a way my shared library can open, display and printf() to display such messages?
Yes, I know about the built-in error and browser windows. But for obscure reasons I want to send my debug messages in a terminal window.
So, how can my shared library open and display a terminal to printf() into?