Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: const451 on September 05, 2012, 02:24:40 am

Title: [SOLVED] How can I use gnome-terminal instead of xterm?
Post by: const451 on September 05, 2012, 02:24:40 am
Hello,

I changed the setting Environment->General->Change Console Program

from: xterm -T $TITLE -e
to: gnome-terminal -T $TITLE -e

but that does not start any terminal at all.

I am on Ubuntu.

TIA
Title: Re: How can I use gnome-terminal instead of xterm?
Post by: Jenna on September 05, 2012, 06:24:13 am
A little search even google should have shown this:

Code
gnome-terminal --disable-factory --hide-menubar -t $TITLE -x

Nevertheless, tht's what I use and it works fine for me.
Title: Re: How can I use gnome-terminal instead of xterm?
Post by: const451 on September 05, 2012, 06:31:24 pm
I did not see it when I searched. Thx for posting.

Can I prevent terminal from closing once the program is done?

Title: Re: How can I use gnome-terminal instead of xterm?
Post by: Jenna on September 05, 2012, 07:29:07 pm
In your projcts properties (ab Build targets)), chose Console as app-type and check "Pause when execution ends" or check "Project -> Set program's arguments -> Run host in terminal" .
Title: Re: How can I use gnome-terminal instead of xterm?
Post by: const451 on September 05, 2012, 08:05:37 pm
It worked - thank you.