Many thanks for your patience Jens.
As an old Windowser I just didn't understand your first response that referred to XTERM termininal that I had never heard of, so I thought I had been unclear in the original post and rephrased it. I am slightly less ignorant now!
As I am on Ubuntu that uses the GNOME desktop I want to use the GNOME terminal as codeblock's console screen. I put 'gnome-terminal' into Settings->Environment dialog which brought up the following on the gnome terminal screen after selecting Run from codeblocks:
ken@ken-desktop:~/projects/dragdroptreevu$
which is the project path to the program. The executable in this case is also called dragdroptreevu and is stored in bin/Debug, so adding bin/Debug/dragdroptreevu to the command line and pressing return executes the program which then runs with its own topwindow side-by-side with the gnome terminal. The gnome-terminal has a scrollbar and supports clipboard operations which is exactly what I wanted.
Changing the Settings->Environment for terminal choice to
gnome-terminal -e "bin/Debug/dragdroptreevu"
starts the gnome-terminal and the program in the same way the default xterm terminal choice did. Nice.
But, the 'dragdroptreevu' executable name is a project setting that should not be hardwired in the environment terminal choice string. Is there an environment variable (or some other notation) for the program executable name that I could use instead of hardwiring, or a variable for the projectname which is same as the executable name in my programs?