wirher
wirher

Reputation: 976

Changing default terminal in Codeblocks

Windows cmd does not support ANSI colour codes and there are a lot of better terminals in the internet. I'm new to code::blocks and want to change the default terminal. What I did is:

Settings>Environment and I just can't change "Terminal to launch console programs" field. How can I do that?

Upvotes: 17

Views: 45274

Answers (5)

ClearlyDelusional
ClearlyDelusional

Reputation: 1

If you're using qterminal, go to Settings>Environment>"Terminal to launch console programs" and write qterminal -e

Upvotes: 0

Cleverhans
Cleverhans

Reputation: 17

The cmd window used in code::blocks will support ansi escapes in windows but it has to be enabled. Try this:

HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
if (hConsole != INVALID_HANDLE_VALUE) {    
   DWORD mode = 0;
   if (GetConsoleMode((hConsole, &mode) {
      mode |=0x0004;
      SetConsoleMode(hConsole, mode);
   }
}

Upvotes: 1

sagar saini
sagar saini

Reputation: 107

enter image description here1) Open Settings in Code blocks from title bar
2) Choose environment from It
3) there is an option to terminal to launch console program (drop down) to run program from there you can choose whatever terminal you want from there

Upvotes: 6

bethm
bethm

Reputation: 1

Right click on the title bar of the console window -> properties -> font/or layout tab.

Upvotes: 0

nKandel
nKandel

Reputation: 2575

I think you can't able to change default terminal on Window's Operating System because none other is present there. But if you are using Linux like Ubuntu you can change it's default command window as gnome-terminal --title=$TITLE -x in place of xterm -T $TITLE -e on Settings>Environment>"Terminal to launch console programs"

Upvotes: 39

Related Questions