Re: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Jani tiainen
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 ha

RE: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Peter A. Castro > Sent: 18 June 2004 19:38 > > >> [win32sdk] > > >>>ID: Q90493 > > > > > > I have a suspicion that this (and similar) code samples > should probably > > > not be posted to this list; can everyone please snip > thei

Re: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Peter A. Castro
On Fri, 18 Jun 2004, Jani tiainen wrote: > Dave Korn wrote: > > >>-Original Message- > >>From: cygwin-owner On Behalf Of Peter A. Castro > >>Sent: 17 June 2004 21:13 > >>To: John Cooper > >>Cc: cygwin > >>Subject: RE: Ctrl-Z fai

RE: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Buchbinder, Barry (NIH/NIAID)
--- From: John Cooper Sent: Friday, June 18, 2004 5:30 AM To: [EMAIL PROTECTED] Subject: Re: Ctrl-Z fails to suspend Windows programs [snip] The problem is that I often don't want to have to terminate the GUI app just to get my shell prompt back. [snip] -- Unsubscribe info: http://

Re: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Warren Young
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

Re: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Jani tiainen
Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Peter A. Castro Sent: 17 June 2004 21:13 To: John Cooper Cc: cygwin Subject: RE: Ctrl-Z fails to suspend Windows programs Anyway, can you point me to where you got this code example? [win32sdk] ID: Q90493 I

RE: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Peter A. Castro > Sent: 17 June 2004 21:13 > To: John Cooper > Cc: cygwin > Subject: RE: Ctrl-Z fails to suspend Windows programs > Anyway, can you point me to where you got this code example? > [

Re: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread John Cooper
Thorsten Kampe <[EMAIL PROTECTED]> writes: > Why should Cygwin zsh have such a feature and make a difference > between a GUI and a non GUI application? Two reasons: 1) Most native Windows apps don't read from or write to the invoking shell window - it doesn't add much value to run them in th

Re: Ctrl-Z fails to suspend Windows programs

2004-06-18 Thread John Cooper
nt is_9x_gui(char *prog) { > > > >char *progpath; > >DWORD dwret; > >char *pathbuf; > >char *pext; > > > > pathbuf=xmalloc(MAX_PATH); > > > >progpath=xmalloc(MAX_PATH<<1); > > > >if (GetEnvironmentV

Re: Ctrl-Z fails to suspend Windows programs

2004-06-17 Thread Thorsten Kampe
* Peter A. Castro (2004-06-17 22:13 +0100) > On Tue, 15 Jun 2004, John Cooper wrote: >> > The point is that it's not about cygwin-vs-windoze apps. It's about >> > apps-that-use-console-stdin-and-stdout vs. apps-that-display-a-gui; those >> > that show a gui could usefully be detached, but those

RE: Ctrl-Z fails to suspend Windows programs

2004-06-17 Thread Peter A. Castro
dwret = SearchPath(pathbuf,prog,".EXE",MAX_PATH<<1,progpath,&pext); > > if ( (dwret == 0) || (dwret > (MAX_PATH<<1) ) ) > goto failed; > > dprintf("progpath is %s\n",progpath); > dwret = is_gui(progpath);

Re: Ctrl-Z fails to suspend Windows programs

2004-06-17 Thread Jani tiainen
Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of John Cooper Sent: 15 June 2004 15:05 To: cygwin Subject: RE: Ctrl-Z fails to suspend Windows programs The old native (non-cygwin) port of zsh would somehow detect if it was about to exec a Windows app, and run it as a

RE: Ctrl-Z fails to suspend Windows programs

2004-06-16 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Jani tiainen > Sent: 16 June 2004 06:13 > To: cygwin > Subject: Re: Ctrl-Z fails to suspend Windows programs > > Christopher Faylor wrote: > > There is no way to reliably suspend a Windows programs. &

Re: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Christopher Faylor
On Wed, Jun 16, 2004 at 08:13:09AM +0300, Jani tiainen wrote: >Christopher Faylor wrote: >>On Tue, Jun 15, 2004 at 03:37:05PM +0300, Jani tiainen wrote: >> >>>Christopher Faylor wrote: >>> On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote: >Is it a known limitation that "nati

Re: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Jani tiainen
Christopher Faylor wrote: On Tue, Jun 15, 2004 at 03:37:05PM +0300, Jani tiainen wrote: Christopher Faylor wrote: On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote: Is it a known limitation that "native" Windows programs cannot be suspended? Yes. Window programs do not understand cygwin

RE: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of John Cooper > Sent: 15 June 2004 16:12 > > I don't think there's a reliable enough mechanism by which > a shell could > > detect one case from the other. > > Below is the code it used to determine if a program is a GUI > program o

RE: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread John Cooper
0; } --- John -Original Message- From: Dave Korn [mailto:[EMAIL PROTECTED] Sent: 15 June 2004 15:40 To: 'John Cooper'; [EMAIL PROTECTED] Subject: RE: Ctrl-Z fails to suspend Windows programs > -Original Message- > From: cygwin-owner On Behalf Of Joh

RE: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of John Cooper > Sent: 15 June 2004 15:05 > To: cygwin > Subject: RE: Ctrl-Z fails to suspend Windows programs > > The old native (non-cygwin) port of zsh would somehow detect > if it was about to > exec a W

RE: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread John Cooper
: Ctrl-Z fails to suspend Windows programs On Tue, Jun 15, 2004 at 03:37:05PM +0300, Jani tiainen wrote: >Christopher Faylor wrote: >>On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote: >>>Is it a known limitation that "native" Windows programs cannot be >

Re: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Christopher Faylor
On Tue, Jun 15, 2004 at 03:37:05PM +0300, Jani tiainen wrote: >Christopher Faylor wrote: >>On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote: >>>Is it a known limitation that "native" Windows programs cannot be >>>suspended? >> >>Yes. Window programs do not understand cygwin signals. > >

Re: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Jani tiainen
Christopher Faylor wrote: On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote: Is it a known limitation that "native" Windows programs cannot be suspended? Yes. Window programs do not understand cygwin signals. Thats true for cygwin part. Native programs still can be suspended/resumed bu

Re: Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread Christopher Faylor
On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote: >Is it a known limitation that "native" Windows programs cannot be suspended? Yes. Window programs do not understand cygwin signals. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwi

Ctrl-Z fails to suspend Windows programs

2004-06-15 Thread John Cooper
[Using bash 2.05b-16 or zsh 4.2.0-2, with cygwin 1.5.10-3 on WinXP] If I run a Windows program from bash, such as notepad.exe, and then press the suspend character (^Z, according to `stty'), nothing happens. In fact, after typing ^Z, ^C also fails to work, although ^C works fine if I don't first