delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/16/15:30:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 16 Sep 2010 15:30:03 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ssh from linux to cygwin + CUI + Ctrl-C
Message-ID: <20100916193003.GA1026@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTi=CvtJmarzhczDOu5k=pE2MsUe=YBiLNH=og0z0 AT mail DOT gmail DOT com> <i6pbtg$dhi$1 AT dough DOT gmane DOT org> <AANLkTi=ywQdJJgLwtQzsQM7yqCHSgdD2k9wnUyDOO_yH AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTi=ywQdJJgLwtQzsQM7yqCHSgdD2k9wnUyDOO_yH@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Thu, Sep 16, 2010 at 09:05:43PM +0200, Ilia K. wrote:
>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).

http://cygwin.com/ml/cygwin/2010-09/msg00468.html

cgf

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019