delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_MR,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <i6pbtg$dhi$1@dough.gmane.org> |
References: | <AANLkTi=CvtJmarzhczDOu5k=pE2MsUe=YBiLNH=og0z0 AT mail DOT gmail DOT com> <i6pbtg$dhi$1 AT dough DOT gmane DOT org> |
Date: | Thu, 16 Sep 2010 21:05:43 +0200 |
Message-ID: | <AANLkTi=ywQdJJgLwtQzsQM7yqCHSgdD2k9wnUyDOO_yH@mail.gmail.com> |
Subject: | Re: ssh from linux to cygwin + CUI + Ctrl-C |
From: | "Ilia K." <mail4ilia AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Wed, Sep 15, 2010 at 4:43 AM, Andrew DeFaria <Andrew AT defaria DOT com> wrote: > On 09/14/2010 08:39 AM, Ilia K. wrote: >> >> Hi, All. >> I've searched quite a lot for the subj and found no solution yet. >> I've installed the last cygwin+openssh on Windows XP. I want to >> connect from linux and run some native console applications >> (non-cygwin CUI, particularly, cdb and cmd) and I need these >> applications to correctly handle Ctrt-C. >> If such CUI application is started from local cygwin bash window it >> handles Ctrl-C properly, but if it's started over ssh Ctrl-C >> terminates application and the control returns to bash (the one which >> runs on the server, ssh session doesn't terminate). > > Control-C works from me ssh'ing from Linux -> Cygwin. Of course my Cygwin is > running on Windows 7 (Actually a vm of Windows 7) but IIRC Control-C also > works at work when I ssh from Linux -> Cygwin on XP. > > Earth:uname -a > Linux earth 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 > x86_64 GNU/Linux > Earth:ssh pluto > Last login: Tue Sep 14 19:40:43 2010 from earth > Pluto:uname -a > CYGWIN_NT-6.1-WOW64 Pluto 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin > Pluto:^C > Pluto:stty -a > speed 38400 baud; rows 24; columns 80; line = 0; > intr = ^C; quit = ^\; erase = ^H; kill = ^X; eof = ^D; eol = <undef>; > eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; > werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; > -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts > -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon > -ixoff > -iuclc -ixany imaxbel > opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 > ff0 > isig icanon iexten echo echoe -echok -echonl -noflsh tostop echoctl echoke > Pluto: > Have you tried to ssh to cygwin, then run cmd.exe (to get a "dos prompt") and then press Ctrl-C? In my case this terminates cmd.exe and returns to bash, but this behavior is wrong (try to press Ctrl-C in cmd.exe which is run directly from the desktop, not from ssh session). Regards, Ilia. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |