Any way to make the external console the default for all new C++ projects?

  • From: "richag" < >
  • To:
  • Subject: Any way to make the external console the default for all new C++ projects?
  • Date: Thu, 06 Oct 2011 08:45:06 +0000

Hello, all.

Is there some way to modify a global preference in the NetBeans
7.0.1 install so that it defaults to using the external terminal for
every new C++ project?

Our sysadmins here at UW-Eau Claire would like to modify our
campus install of NetBeans 7.0.1 so that the default is to use the
external console for every new C++ application created.  The default
is currently to use the internal console, which doesn't have
the keyboard focus when a C++ program runs and executes
a "cin" command.

Here's the backstory:

We're teaching C++ at UW-Eau Claire using NetBeans.  We just upgraded
from NetBeans 6.7.1 to NetBeans 7.0.1.  The old version defaulted
to using the "external console" (a separate white-on-black
window in Windows 7) for C++ console I/O.  Our install of NetBeans 7.0.1
defaults to using the NetBeans "internal console" for I/O instead.

When our students write and run a C++ program that does a "cin" command
to get a value from the console, when they type in the requested value, the
internal terminal doesn't have the keyboard focus.  That results in the value
getting typed into their source code in the editor window, or into one of the
search fields in NetBeans instead of into the internal terminal window
as input data to their running program.  It's very annoying.

Students *could* set the keyboard focus to the internal terminal by first
clicking there before typing, but it's neither natural nor intuitive to do so.
They see a prompt to enter a number, they type in a number, and instead
of that number being input into their program,
they've just added a syntax error to their source code while their
program is running.

This is driving all of us crazy.

It's possible to switch to using the external terminal instead on a
project-by-project basis by right-clicking the project name, choosing
Properties > Run, and setting the console to be the external console.
But students currently need to remember do that for every
programming assignment they create.  What a pain.

So what we want is some way to change the entire campus install of
NetBeans 7.0.1 to default to using the external terminal to bypass this
keyboard-focus problem entirely.  But our sysadmins can't find
any such setting to change.

Or is this a Cygwin thing?  We have the Cygwin C++ compiler
installed.

Thanks in advance for any help with this.

  -- Tony






Any way to make the external console the default for all new C++ projects?

richag 10/06/2011

Re: Any way to make the external console the default for all new C++ projects?

Nikolay Molchanov 10/06/2011

Re: Any way to make the external console the default for all new C++ projects?

Ivan Soleimanipour 10/06/2011

Any way to make the external console the default for all new C++ projects?

soldatov 10/06/2011

Re: Any way to make the external console the default for all new C++ projects?

Ivan Soleimanipour 10/06/2011

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close