Re: ctrl-c swallowed

2003-09-01 Thread Gareth Pearce
>
> > Christopher Faylor wrote:
> >
> > > >I don't know if this is the "officially correct" answer or not, but I
> > > >find that ^C doesn't work right with some programs when run from
> > > >CMD.EXE unless I have the "tty" flag added to the CYGWIN environment
> > > >variable.  The users' guide has a section on how to do this, I'm
sure.
> > >
> > > CTRL-C is designed to work correctly with cygwin applications in
either
> > > tty or notty mode.  Please don't spread FUD if you aren't providing
> > > details.
> >
> > In pico, without CYGWIN=tty, pressing ^C does nothing.  With CYGWIN=tty,
> > it works as it's supposed to (displays the current position.)  That's
> > all, just my observation.
>
>
> Yeah! Thats correct! For some reason, if pico (or nano) is runned with
CYGWIN=tty,
> it will make the terminal go crazy when it is terminating. The terminal
will not display any output, just consume input.
> "stty sane" or "reset" did not alter that behaviour...

I find this behaviour if i set the cygwin=tty variable after having started
the bash prompt.  Setting it before (ie adding it to the system environment
variables) has no problems.
ctrl-C and (i think) ctrl-T not working in nano are the only reasons i set
cygwin=tty.

Gareth

>
> >
> > Brian
> >
> > --
> > 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/
> >
>
>
> --
> 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/
>
>

--
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/



Re: ctrl-c swallowed

2003-09-01 Thread Anders Lindén

- Original Message - 
From: "Brian Dessent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 01, 2003 1:56 AM
Subject: Re: ctrl-c swallowed


> Christopher Faylor wrote:
> 
> > >I don't know if this is the "officially correct" answer or not, but I
> > >find that ^C doesn't work right with some programs when run from
> > >CMD.EXE unless I have the "tty" flag added to the CYGWIN environment
> > >variable.  The users' guide has a section on how to do this, I'm sure.
> > 
> > CTRL-C is designed to work correctly with cygwin applications in either
> > tty or notty mode.  Please don't spread FUD if you aren't providing
> > details.
> 
> In pico, without CYGWIN=tty, pressing ^C does nothing.  With CYGWIN=tty,
> it works as it's supposed to (displays the current position.)  That's
> all, just my observation.


Yeah! Thats correct! For some reason, if pico (or nano) is runned with CYGWIN=tty,
it will make the terminal go crazy when it is terminating. The terminal will not 
display any output, just consume input.
"stty sane" or "reset" did not alter that behaviour...

> 
> Brian
> 
> --
> 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/
> 


--
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/



Re: ctrl-c swallowed

2003-09-01 Thread Igor Pechtchanski
That's what the mailing list is for.  This kind of discussion should be
kept on the mailing list so that it can be found in the archives.

The information generated by cygcheck should not present any security
issues, but I'll let others comment on this.

The reason I asked for your /cygwin.bat was that others reported that
Ctrl-C becomes ineffective if "start" was used to fire off the bash shell,
so if you had modified your /cygwin.bat, that would explain the problem.

As for the cygcheck output, I'd've looked for the contents of the CYGWIN
environment variable there, especially the setting of "tty" (as was
already suggested on the list by Brian Dessent).  Also, having the list of
packages and DLL versions in the cygcheck output lets others duplicate
your environment in an attempt to reproduce your problem.
Igor

On Sun, 31 Aug 2003, Anders Lindén wrote:

> Sorry, I was not authorized to give away the information.
>
> I actually saw the problem report webpage before I was sending the
> posting, but I missed the part about sending information about my
> system.
>
> I never altered cygwin.bat, here it is if you want to know:
> @echo off
>
> D:
> chdir D:\cygwin\bin
>
> bash --login -i
>
> Well, the reason that I send this personally to you is that I dont want
> to clutter the mailing lists with my excuse.
>
> best regards
> /Anders
>
>
> - Original Message -
> From: "Igor Pechtchanski" <[EMAIL PROTECTED]>
> To: "Anders Lindén" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, August 31, 2003 8:48 PM
> Subject: Re: ctrl-c swallowed
>
>
> On Sun, 31 Aug 2003, Anders Lindén wrote:
>
> > Hello!
> >
> > When I use the Programs->cygwin->cygwin bash shell, I get a console
> > window with a bash shell, but ctrl-c presses never reaches the
> > applications. I presume that it is the bash application that swallows
> > them, or?
> >
> > When I run bash in xfree (shipped with cygwin), the problem is not
> > there, ctrl-c presses is reaching the application.  However, I need to
> > use the console.
> >
> > Any suggestions?
> > /Anders
>
> Anders,
>
> Please (re)read the problem reporting guidelines at
> <http://cygwin.com/problems.html>, particularly the bit about attaching
> (as an uncompressed text *attachment*) the output of "cygcheck -svr".
> This output will contain the information that would be helpful in
> diagnosing this problem.
>
> Also, what's the contents of your /cygwin.bat?
> Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/



Re: ctrl-c swallowed

2003-08-31 Thread Brian Dessent
Christopher Faylor wrote:

> >I don't know if this is the "officially correct" answer or not, but I
> >find that ^C doesn't work right with some programs when run from
> >CMD.EXE unless I have the "tty" flag added to the CYGWIN environment
> >variable.  The users' guide has a section on how to do this, I'm sure.
> 
> CTRL-C is designed to work correctly with cygwin applications in either
> tty or notty mode.  Please don't spread FUD if you aren't providing
> details.

In pico, without CYGWIN=tty, pressing ^C does nothing.  With CYGWIN=tty,
it works as it's supposed to (displays the current position.)  That's
all, just my observation.

Brian

--
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/



Re: ctrl-c swallowed

2003-08-31 Thread Christopher Faylor
On Sun, Aug 31, 2003 at 03:01:57PM -0700, Brian Dessent wrote:
>Anders Lind?n wrote:
>>When I use the Programs->cygwin->cygwin bash shell, I get a console
>>window with a bash shell, but ctrl-c presses never reaches the
>>applications.  I presume that it is the bash application that swallows
>>them, or?
>>
>>When I run bash in xfree (shipped with cygwin), the problem is not
>>there, ctrl-c presses is reaching the application.  However, I need to
>>use the console.
>
>I don't know if this is the "officially correct" answer or not, but I
>find that ^C doesn't work right with some programs when run from
>CMD.EXE unless I have the "tty" flag added to the CYGWIN environment
>variable.  The users' guide has a section on how to do this, I'm sure.

CTRL-C is designed to work correctly with cygwin applications in either
tty or notty mode.  Please don't spread FUD if you aren't providing
details.

cgf

--
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/



Re: ctrl-c swallowed

2003-08-31 Thread Brian Dessent
Anders Lindén wrote:

> When I use the Programs->cygwin->cygwin bash shell, I get a console window with a 
> bash shell, but ctrl-c
> presses never reaches the applications. I presume that it is the bash application 
> that swallows them, or?
> 
> When I run bash in xfree (shipped with cygwin), the problem is not there, ctrl-c 
> presses is reaching the application.
> However, I need to use the console.

I don't know if this is the "officially correct" answer or not, but I
find that ^C doesn't work right with some programs when run from CMD.EXE
unless I have the "tty" flag added to the CYGWIN environment variable. 
The users' guide has a section on how to do this, I'm sure.

A better solution, in my opinion, is to ditch CMD.EXE completely and use
rxvt as the terminal -- it will work equally well regardless of whether
XFree86 is running or not.

Brian

--
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/



Re: ctrl-c swallowed

2003-08-31 Thread Igor Pechtchanski
On Sun, 31 Aug 2003, Anders Lindén wrote:

> Hello!
>
> When I use the Programs->cygwin->cygwin bash shell, I get a console
> window with a bash shell, but ctrl-c presses never reaches the
> applications. I presume that it is the bash application that swallows
> them, or?
>
> When I run bash in xfree (shipped with cygwin), the problem is not
> there, ctrl-c presses is reaching the application.  However, I need to
> use the console.
>
> Any suggestions?
> /Anders

Anders,

Please (re)read the problem reporting guidelines at
, particularly the bit about attaching
(as an uncompressed text *attachment*) the output of "cygcheck -svr".
This output will contain the information that would be helpful in
diagnosing this problem.

Also, what's the contents of your /cygwin.bat?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/



ctrl-c swallowed

2003-08-31 Thread Anders Lindén
Hello!

When I use the Programs->cygwin->cygwin bash shell, I get a console window with a bash 
shell, but ctrl-c
presses never reaches the applications. I presume that it is the bash application that 
swallows them, or?

When I run bash in xfree (shipped with cygwin), the problem is not there, ctrl-c 
presses is reaching the application.
However, I need to use the console.

Any suggestions?

/Anders




--
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/