[Mingw-users] Fullscreen option.

23 views
Skip to first unread message

Me Myself and I

unread,
Jan 23, 2012, 2:00:53 AM1/23/12
to mingw...@lists.sourceforge.net
I run Mingw successfully in 64 bit Windows 7.

I find that when I hit the maximise button, I only get a tall window, which takes up the left
side of the desktop.

How do I make Mingw go full screen, properly?

LRN

unread,
Jan 23, 2012, 4:05:17 AM1/23/12
to mingw...@lists.sourceforge.net
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Right click on window title, Properties, Layout.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPHSLNAAoJEOs4Jb6SI2CwYkAH/0DWUkXPyCRI0uhDC54wtKPr
2h1lRHodeVUUMymXovGmS+zq016nuVzjKrKE6gx4frSmMqVPFR3opnyaGIscEtUb
Pv5vn7ITOw4hs1M61EYbux9JwnZrv6ayaV2xMaFWcLPOf9KubV632LUQztABivjp
2lDIlN4Oxecbw+Xe/91a/q1V0SlAOndW7J+a86STLW2OhPKoO4WxznOsOEgMyxPN
mAtD7+DdYzPYQQVbv3+i19UFiH2lbgEhSYVCYUVGkQTVvicyFsaEwe7HxH4m8T1O
OhDvIuo2iUe4MOMPGt9msf2KjFizcVwfkcrvdSh69SnXhLcX0ja9TjfybNbRFKA=
=WTCd
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
MinGW...@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-use...@lists.sourceforge.net?subject=unsubscribe

Keith Marshall

unread,
Jan 23, 2012, 10:45:05 AM1/23/12
to mingw...@lists.sourceforge.net
On 23/01/12 07:00, Me Myself and I wrote:
> I find that when I hit the maximise button, I only get a tall window,
> which takes up the left side of the desktop.
>
> How do I make Mingw go full screen, properly?

This is one of those "how long is a piece of string?" type questions;
the only possible rational answer is "It depends ...".

MinGW, by itself, doesn't provide a maximise button, so how can you
possibly expect a definitive answer? The answer depends on whatever
application is providing the maximise button to which you refer. How do
you expect us to guess what that might be?

It could be an application you've written yourself, using MinGW to
compile it; in this case the answer is that it depends on whatever
provision *you've* made to handle the maximise event.

More likely, you're asking how you maximise the console window in which
your MinGW session is hosted. In this case, the answer depends on your
choice of console container application. If that's the native Win32
console, provided by Microsoft, then you're stuck with the limited
resizing capabilities which that supports -- you can change the layout
settings to make it effectively occupy the full screen, but that isn't
exactly the same as a simple maximise event.

OTOH, if you choose console.exe from http://sf.net/projects/console, (my
own preference), then you'll find that the maximise button has been
disabled, (because it acts as an enhanced viewing window on a hidden
native Win32 console, which lacks decent maximise support); however, you
will be able to resize the window (by simply dragging its resize
handles), to fill as much (or as little) of the screen as you like.

Other alternatives, if you use MSYS, are to run the shell in an RXVT
console window -- definitely one to avoid -- or in a mintty console.
Either of these should support the maximise event properly, but both are
susceptible to I/O blocking issues, (caused by inadequate -- in reality,
non-existent -- pty emulation in Win32). This will usually manifest as
apparent loss of output to the console when you are waiting for it,
(it's probably actually stuck in an unflushed pipe); if you can
understand this, and are prepared to deal with it, then mintty may be a
viable choice for you, otherwise it's probably best to stay clear.

--
Regards,
Keith.

Gisle Vanem

unread,
Jan 23, 2012, 2:50:17 PM1/23/12
to MinGW Users List
"Keith Marshall" <keithm...@users.sourceforge.net> wrote:

> On 23/01/12 07:00, Me Myself and I wrote:
>> I find that when I hit the maximise button, I only get a tall window,
>> which takes up the left side of the desktop.
>>
>> How do I make Mingw go full screen, properly?
>
> This is one of those "how long is a piece of string?" type questions;
> the only possible rational answer is "It depends ...".

The OP's message got lost here (hence this reply). If the OP wants
a maximed *text-mode* console, the trick is to send an "Alt-Enter"
code to the console:
SendMessage (hWnd, WM_SYSKEYDOWN, VK_RETURN,0xFF000000);

(first find the window with the correct title or set it yourself).

See my BSOD-joke program for an example:
http://home.broadpark.no/~gvanem/misc/#bsod-joke

--gv

Luis Lavena

unread,
Jan 24, 2012, 6:38:03 AM1/24/12
to MinGW Users List
On Mon, Jan 23, 2012 at 4:50 PM, Gisle Vanem <gva...@broadpark.no> wrote:
> "Keith Marshall" <keithm...@users.sourceforge.net> wrote:
>
>> On 23/01/12 07:00, Me Myself and I wrote:
>>> I find that when I hit the maximise button, I only get a tall window,
>>> which takes up the left side of the desktop.
>>>
>>> How do I make Mingw go full screen, properly?
>>
>> This is one of those "how long is a piece of string?" type questions;
>> the only possible rational answer is "It depends ...".
>
> The OP's message got lost here (hence this reply).

I find quite valid Keith's response.

> If the OP wants
> a maximed *text-mode* console, the trick is to send an "Alt-Enter"
> code to the console:
>  SendMessage (hWnd, WM_SYSKEYDOWN, VK_RETURN,0xFF000000);
>
> (first find the window with the correct title or set it yourself).
>
> See my BSOD-joke program for an example:
>  http://home.broadpark.no/~gvanem/misc/#bsod-joke
>

This does not work, Windows 7 (x64) Ultimate, GCC 4.6.2, neither by
starting from already existing cmd.exe or by double clicking on it.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!


The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!

http://p.sf.net/sfu/learndevnow-d2d

Mcgroder, James

unread,
Jan 25, 2012, 10:47:35 PM1/25/12
to MinGW Users List

Monday, January 23, 2012 10:45 AM Keith Marshal wrote:
> [...] if you choose console.exe from http://sf.net/projects/console

Is it possible to configure MSYS to use console in lieu of CMD.exe?
I tried changing CMD.EXE in MSYS.bat to the path for console. Still got
the DOS window...

-- Jim

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!

The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!

http://p.sf.net/sfu/learndevnow-d2d

Earnie Boyd

unread,
Jan 26, 2012, 8:49:08 AM1/26/12
to MinGW Users List
On Wed, Jan 25, 2012 at 10:47 PM, Mcgroder, James <james.m...@hp.com> wrote:
>
>
> Monday, January 23, 2012 10:45 AM Keith Marshal wrote:
>>  [...] if you choose console.exe from http://sf.net/projects/console
>
> Is it possible to configure MSYS to use console in lieu of CMD.exe?
> I tried changing CMD.EXE in MSYS.bat to the path for console. Still got
> the DOS window...

http://lmgtfy.com/?q=msys+%2B+console2

Then do:
mingw-get update
mingw-get install msys-console

--
Earnie
-- https://sites.google.com/site/earnieboyd

Reply all
Reply to author
Forward
0 new messages