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 Wed, Sep 15, 2010 at 4:43 AM, Andrew DeFaria <Andrew@defaria.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


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