This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ctrl-Z fails to suspend Windows programs


Warren Young wrote:

John Cooper wrote:


The problem is that I often don't want to have to terminate the GUI app just to
get my shell prompt back.


Well now, that's an entirely different deal.

Somehow, cmd.exe detects that a program is GUI-only, and it gives you your prompt back when the program has launched. I suspect it would be better to find out how cmd.exe manages that trick than to put Ctrl-Z support into Cygwin that will likely break some non-Cygwin programs.

One way to do this would be for Cygwin's exec() to look at the PE header for the program and see if it has the console mode flag set. If not, it could do whatever the Cygwin 'run' program does to spin the program off, detached from the shell.

That would be totally inconsistent how shells work. IMO, adding ampresand at end of command works as intended and is consistent how things work in *nixes


--

Jani Tiainen

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]