Author Topic: Multi monitor, DOS program, debug console window placement?  (Read 206 times)

Offline Cool Javelin

  • Single posting newcomer
  • *
  • Posts: 6
Multi monitor, DOS program, debug console window placement?
« on: August 05, 2017, 02:48:37 am »
Code::Blocks 16.01  Win7 SP1.

I have several monitors, and use the main one for the development of my code.
When I click the red right arrow (run my program using the debugger) I get a console window running my program on top of (or sometimes under) the Code::Blocks development environment.
I can then grab the window and move it to another monitor and change its size. I'd prefer not to do that part every time I debug.

How can I get Code::blocks to put that console window on a different monitor?  Also, Can I get it to open with more then 25 lines, maybe 50?

My code is C, not C++ or C# and is DOS only. However I have included windows.h and I do make some windows calls to do things like init the serial port and change the console colors.
That said, maybe there is a way to have my code alter the window size and placement but being a DOS program I think not.

Thanks, Mark.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10118
Re: Multi monitor, DOS program, debug console window placement?
« Reply #1 on: August 05, 2017, 11:09:48 am »
How can I get Code::blocks to put that console window on a different monitor?
No, it is not possible. This is job for the window manager and not code::blocks.

Also, Can I get it to open with more then 25 lines, maybe 50?
Probably. The easiest way is to install windows 10, there the console is easily resizeable.
If not try this https://stackoverflow.com/a/319317

Btw, if you're including windows.h then you're making a windows console application. This has nothing to do with DOS! :)
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Cool Javelin

  • Single posting newcomer
  • *
  • Posts: 6
Re: Multi monitor, DOS program, debug console window placement?
« Reply #2 on: August 06, 2017, 09:09:14 pm »
Actually, silly me, I just figured it out.

I placed and stretched my console window, then did a VIEW->Perspectives->save current

 ???

Mark.