ebresie commented on issue #3959:
URL: https://github.com/apache/netbeans/issues/3959#issuecomment-1214415826

   For reference "Terminal.java" has the following comments within:
   
    * A {@link org.netbeans.lib.terminalemulator.Term}-based terminal component 
for
    * inside NetBeans.
    * <p>
    * The most straightforward way of using it is as follows:
    * <pre>
       import org.netbeans.lib.richexecution.Command;
       import org.netbeans.lib.richexecution.Program;
    *
       public void actionPerformed(ActionEvent evt) {
           // Ask user what command they want to run
           String cmd = JOptionPane.showInputDialog("Command");
           if (cmd == null || cmd.trim().equals(""))
               return;
   
           TerminalProvider terminalProvider = TerminalProvider.getDefault();
           Terminal terminal = terminalProvider.createTerminal("command: " + 
cmd);
           Program program = new Command(cmd);
           terminal.startProgram(program, true);
       }
    * </pre>
    * @author ivan
   
   So is this as simple of having the "cmd" to start a given shell defined and 
executed in some way?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to