0

I'm a newbie in Ubuntu.
And I want to change the fonts, size, color of console of CB. Please help me!

I'm a newbie in Ubuntu. And I want to change the fonts, size, color of console of CB. Please help me!!

Manh Hai
  • 13
  • 3

1 Answers1

0

I don't think that there is any one specific correct answer for this and it really is all about preference, but here is something I have come up with that might help. This answer is based on this answer that I wrote.

I recommend that you use any of the xterm terminal types. Probably the best one to use is rxvt-unicode

sudo apt install rxvt-unicode

Then in CodeBlocks go to Settings -> Environment... then in the Terminal to launch console programs add the following:

urxvt -T $TITLE -e

enter image description here

Now, to change the colors and the fonts add like the following to your ~/.Xdefaults file at the bottom:

URxvt*background: black
URxvt*foreground: white

Then one of the fonts that I kind of like is a monospace font and you can add it like the following below the above 2 lines:

URxvt*font: xft:Monospace:size=9:antialias=true

Save the .Xdefaults file and now you should get something looking like this:

enter image description here

Or you can change background colors to whatever you want. Here's Cyan with Black text:

URxvt*background: cyan
URxvt*foreground: black

enter image description here

If you want to play around with different fonts that you can run from a terminal window:

fc-list | sort

And it should give you a list of available fonts. Probably best to stick with any of the Mono type fonts.

Hope this helps!

Terrance
  • 43,712