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: ssh from linux to cygwin + CUI + Ctrl-C


On 9/20/2010 6:22 AM, Ilia K. wrote:
It looks like my reply got lost in mailer's spam filters, reposting.

On Wed, Sep 15, 2010 at 5:36 PM, Christopher Faylor wrote:
...
Cygwin summarily halts a pure-Windows process on receiving a CTRL-C.
There is no way around that other than to relink the program to use
Cygwin.

Do you state that there is absolutely no way to make it work as I need? This would be very pity...

Do you know what's the difference between running bash from sshd and
from the desktop? In the later case, Ctrl-C works as expected! To me
it looks like cygwin knows how to pass Ctrl-C to native apps, but sshd
somehow interferes with it.

See <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html> and look for the 'tty' setting. If you set 'tty' before starting 'bash', you'll see the same issue even using a plain console (cmd.exe). I'm assuming that's what you mean when you say "from the desktop" above. Actual terminals, rxvt, mintty, etc., will have the same behavior you saw with 'sshd'. Currently, there is no way to support ptys and make Windows understand them as something other than a pipe.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?

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


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