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

Offline Cool Javelin

  • Multiple posting newcomer
  • *
  • Posts: 22
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.
My 1st computer was an IBM System 360. We used punch cards. God help us when the runner dropped the boxes on the way to the computer room.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
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! :)
(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

  • Multiple posting newcomer
  • *
  • Posts: 22
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.
My 1st computer was an IBM System 360. We used punch cards. God help us when the runner dropped the boxes on the way to the computer room.

Offline Amogachis

  • Single posting newcomer
  • *
  • Posts: 2
Re: Multi monitor, DOS program, debug console window placement?
« Reply #3 on: September 04, 2017, 04:15:50 am »
Where can I find more information?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Multi monitor, DOS program, debug console window placement?
« Reply #4 on: September 04, 2017, 05:08:43 am »
Where can I find more information?

At microsoft.com that is where you get information about how to use windows.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org