User forums > Using Code::Blocks

[SOLVED] How can I use gnome-terminal instead of xterm?

(1/1)

const451:
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

Jenna:
A little search even google should have shown this:


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

Nevertheless, tht's what I use and it works fine for me.

const451:
I did not see it when I searched. Thx for posting.

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

Jenna:
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" .

const451:
It worked - thank you.

Navigation

[0] Message Index

Go to full version