X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 15 Sep 2010 12:15:32 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: ssh from linux to cygwin + CUI + Ctrl-C Message-ID: <20100915161532.GA5729@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4C8FB7B6 DOT 1030300 AT gmail DOT com> <4C90E6C4 DOT 9050503 AT gmail DOT com> <4C90EA96 DOT 6060307 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C90EA96.6060307@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 11:47:34PM +0800, Chan Kar Heng wrote: >Chan Kar Heng wrote: >> I use cygwin to ssh into numerous systems very often, such as AIX, HP >> UX, Solaris, DEC Alpha. I've always managed to send ctrl-c (by pressing >> ctrl-]) to the app running on that platform. There was only 1 rare case >> when it didn't. >> Not sure what you mean by "native" apps... If you could clarify? >> >> KarHeng >> >> Ilia K. wrote: >>> On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng >>> wrote: >>>> Hi there. >>>> >>>> I've had the same problem in the past. >>>> Posted a temporary solution here: >>>> >>>> http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html >>> >>> This is an interesting hack, but unfortunately it won't work for >>> "native" apps, only for cygwin-linked. > >For those native apps, perhaps you can try sending SIGINT to that CUI >app using kill? This won't work for the reason I previously mentioned. >Else, find a Windows app that is capable of pushing a Ctrl-C into the >keyboard buffer. If you know some programming, it's not difficult to >write if you know the correct APIs to call. That might work if the windows process is expecting input but it probably will fail otherwise. 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