3

It's so annoying to drag it over and over again. How to change default position of a console?

enter image description here

5

You can use command line options to launch the terminal window with desired settings.

In codeblocks :

  • Go to Settings > Environment > General Settings.
  • Change the "Terminal to launch console programs" option to :

gnome-terminal --geometry=WIDTHxHEIGHT+XOFF+YOFF -x

+XOFF : The left edge of the window is to be placed XOFF pixels in from the left edge of the screen
+YOFF : The top edge of the window is to be YOFF pixels below the top edge of the screen

I used the following to have the terminal almost centered on my screen :

gnome-terminal --geometry=80x20+300+240 -x  

Dialog in codeblocks and place to launch the terminal with desired settings

Source 1
source 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.