My Situation Is: I am trying to make a simple IDE for NASM in Java. When I execute a .asm file in my IDE it open the terminal and shows the output. I am using xterm for this purpose. Now the problem is I really don't like the look of xterm or uxterm. I prefer the gnome-terminal. But if I use the gnome-terminal this will restrict my application to a particular OS i.e. it will be able to execute .asm files only in Ubuntu (for eg:the default terminal for KUbuntu is something else.. etc.. )
So my idea is that if there is a 'command' that i can run in xterm to get to know the default terminal and execute the .asm files via my application in the default terminal of the particular OS. That was my first question.
My second question is: Is there a way i can simply transfer the controls of a terminal to something else. Like in Java to a JTextPane. My idea is to simply create a console like in ecplipse of netbeans where you can see your output in their own console. So It will be actually better than the idea of invoking the terminal and then running the commands in it.