delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/29/08:43:56

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; q=dns; s=default; b=WbCydravucOrxvaW
M7LO9mUmysw6BZnGgjDleZrmni0/1DEkIIfSKOGZVuloLURQ52edQwX4w4+Gdsw7
tYJDPTuvgmg/z8SvlR/CUSUU8qyriuQ13GgPXLZLZC+oG6WNEr8DuvztLfA4JFUD
zVcluGoKhq0dyqm9SOsYMSSRuyc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; s=default; bh=cjjEeztGttpq0U5qnxrQPA
SIFO8=; b=dsdWNsn0n5ZXbeFWamcr7s+/dmMKiXNiArZDsihioEZ8zpvW2jCVZE
hNi0JOYamnZUNz/FkOop3KtfSVblXeFPQpXje9KDK7ZEMSdMjChGu0zK/Yswef3X
qGIkp/gPsDTFhKXirAgOA2erxun+D+4JieZ9KOh2wnqIdwwazXbkA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,KAM_OTHER_BAD_TLD,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=UD:work, defunwork, defun.work, UD:defun.work
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Oleksandr Gavenko <gavenkoa AT gmail DOT com>
Subject: Re: Is it possible to hide emacs-w32 console window?
Date: Sun, 29 May 2016 15:43:21 +0300
Lines: 48
Message-ID: <87d1o52fx2.fsf@gavenkoa.example.com>
References: <87pos53n6s DOT fsf AT gavenkoa DOT example DOT com> <463b9a2b-cad4-5fe7-f175-1a723c0bcf63 AT cornell DOT edu>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
X-IsSubscribed: yes

On 2016-05-29, Ken Brown wrote:

> On 5/28/2016 5:08 PM, Oleksandr Gavenko wrote:
>> emacs-w32 starts console window and that useless window disturbs during task
>> switching (by Alt+TAB) and take space on TaskBar.
>>
>> Is it possible to hide emacs-w32 console window?
>
> Sorry, I don't know what console window you're talking about.  Exactly how do
> you start emacs-w32?  I start it by typing 'emacs-w32 &' in a Cygwin terminal
> (mintty), and there's no console window.
>
Sorry I forgot to add this detail.

I use Win+R emacs-w32 ENTER.

If I start from terminal (cmd.exe or mintty) it works as in your case.

But otherwise "ConsoleWindowClass" (from spy++) window is opened (like cmd.exe
but without working prompt) along with regular Emacs windows.

Closing that window also closes Emacs.

I try:

  #include <windows.h>
  int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow) {
      MessageBoxW(NULL, L"Hello", L"Ok", MB_OK);
      return 0;
  }

with:

  gcc -Wl,--subsystem,windows -o mb.exe mb.c

and on:

   Win+R C:\home\my\tmp\mb.exe ENTER

I don't see console window.

I don't know if it is possible to link emacs-w32 with --subsystem=windows.

mintty.exe has dependency on cygwin1.dll and does not bring up cmd-like
console along with xterm console.

-- 
http://defun.work/


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019