Terminal emulator

Today I would like to mention a new feature in NetBeans 6.9 that allows run terminal in NetBeans. The module is marked as experimental, but it can be useful, when you don't want to switch between a terminal and NetBeans. You can open it from the main menu Window -> Output -> Terminal (Experimental).  

When you invoke the action new window is opened in the output window area. The terminal window has two icons on left side.  

The  first icon opens terminal on local computer. You can do everything as usual.

The behavior is the same as in the real terminal.  You can run processes, other programs etc.

The second icon opens remote terminal. You have to have SSH access to the remote server to use this capabilities. 

The pictures are from my Ubuntu machine. I have not tried it on other platforms yet. If you have any problem with this module, please file a bug in our database for cnd product, terminalemulator category.


really nice feature, helps me directly running helpers and stuff inside netbeans

Posted by robo47 on June 07, 2010 at 10:22 AM CEST #

Question: is this cross-platform, or Linux only?

Posted by WebDevHobo on June 07, 2010 at 10:23 AM CEST #

This is wicked cool!

Posted by e.s.t on June 07, 2010 at 10:42 AM CEST #

This is sweet! I think it will be very useful.

How about adding a file manager that behaves similar to the windows explorer? I know about NetBeans "Files" module but it's not as flexible as the windows explorer.

Posted by Raymond on June 07, 2010 at 04:37 PM CEST #

Terminal is nice, I also read somewhere about another new feature - spellchecker - can you introduce this one in one of the next post please?

Posted by optik on June 08, 2010 at 03:58 AM CEST #

I've been using the great plug-in "path tools", which also can open a terminal. and this plug-in can also open the shell to path of the current script. implementing this feature to the terminal emulator would be great.

Posted by tufan on June 08, 2010 at 04:54 AM CEST #

I just recognized that, changing the font options of the emulator throws an exception, which also cannot be reported, since the font choose dialog has focus. (ubuntu 10.4 - dev build #1922)

java.lang.IllegalArgumentException: the value should be from 0 to 100
at javax.swing.SwingWorker.setProgress(SwingWorker.java:465)
at org.netbeans.lib.terminalemulator.support.FontPanel$GetFontsWorker.doInBackground(FontPanel.java:226)
at org.netbeans.lib.terminalemulator.support.FontPanel$GetFontsWorker.doInBackground(FontPanel.java:165)

Posted by tufan on June 08, 2010 at 05:00 AM CEST #

@tufan. path-tools is just a workaroud for unbelieved netbeans missed feauter - call external programs via config in IDE - bug https://netbeans.org/bugzilla/show_bug.cgi?id=35582

Posted by optik on June 08, 2010 at 05:15 AM CEST #

Hmm nice feature...
Local terminal is unavailable under windows though... cmd.exe would be an option... or maybe powershell?

Posted by m.ozan.hazer on June 08, 2010 at 07:08 AM CEST #

@WebDevHobo: I tried it today on Windows XP and it fails. I'm going to file a bug against the component.

@Raymond: What do you expect from such explorer? Which features are you missing?

@optik: Yes, spellchecker is another new feature. Definitely I will write about this next time.

@tufan: I agree with you. Also I have discussed the possibility to open terminal directly for selected folder with the developers.

Posted by Petr Pisl on June 08, 2010 at 07:27 AM CEST #


tried to vote for the issue, but I get a Proxy Error:
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /people/login.

Posted by tufan on June 09, 2010 at 04:11 AM CEST #

Hi Petr,

I would like to see a 2-pane file explorer with folders in one pane and files in the other. I would like to be able to create, sort, search and drag and drop files.

Posted by Raymond on June 09, 2010 at 12:56 PM CEST #

@Raymond: The drag and drop you can do it when put the Files or Favorite View next to the Project View for example. You can change position of a window, when you drug the window over title tab and move it.

The sorting you can set up in the properties of a folder.

I don't know, whether it will fit you:).

Posted by Petr Pisl on June 10, 2010 at 04:17 AM CEST #

tried the "local terminal" feature on windows 7 and failed:

error message:
Failed to start terminal: null

Posted by nas servers reviews on June 15, 2010 at 09:58 PM CEST #

I tried the terminal this morning on Windows XP SP2 and it worked - one caveat, I have Cygwin installed and in my PATH.

Posted by John Bruckler on June 21, 2010 at 07:04 AM CEST #

I tried terminal on Windows XP SP3 and i have failed.

Error message - Failed to start terminal: null

Where is problem?

Posted by Pooky on July 10, 2010 at 04:09 PM CEST #

Hi, is there an configuration to change the charset of the connection? We are using utf8, but the terminal is displaying 2 chars for on utf8-character. Im using windows-xp.

Best regards

Posted by Dietmar on August 10, 2010 at 03:25 AM CEST #

@Pooky: Do you have Cygwin installed?

@Dietmar: Could you file a bug for product cnd and component terminalemulator? http://netbeans.org/bugzilla/enter_bug.cgi?product=cnd

Posted by Petr Pisl on August 10, 2010 at 09:52 AM CEST #

Very nice feature, quite useful for me for quick terminal tasks.

Posted by guest on October 12, 2010 at 11:58 AM CEST #

How or hwere can I configure the shell?
In cygwin (or mac) I can configure it using the .profile file.

Where can I configure the Netbeans shell like that?

Posted by guest on November 08, 2011 at 05:54 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed

This blogs is written by NetBeans developers who contribute to the PHP support mainly.


« July 2016