Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » 'Ctrl-C' in a console
'Ctrl-C' in a console [message #113533] Tue, 01 November 2005 17:41 Go to next message
Eclipse UserFriend
Originally posted by: jcwilson001.nym.hush.com

I have managed to get Cygwin to run as an external tool through Eclipse.
Upon running, it opens a new console session. I'd like to be able to send
'Ctrl-C' events through the console to this Cygwin session, however the
Eclipse GUI intercepts the event and interprets it as the Windows 'copy'
command. I'm using XP, in case that info helps.

I have noticed that there is a way to send an EOF event by setting up a
special keybinding in the Run/Debug category. Is the EOF event just a way
of sending ASCII code 0x04 or 0x26? If so, shouldn't there be a similar
way to send 0x03 (ETX (which is what 'Ctrl-C' normally does in the Cygwin
environment, I think))?

The reason I need to do this is that I'm running a Python interpreter in
the Cygwin session and need to be able to interrupt it by hand. 'Ctrl-C'
works in a plain Cygwin session, but not in Eclipse.

Thanks for any suggestions,
Josh
Re: 'Ctrl-C' in a console [message #113560 is a reply to message #113533] Tue, 01 November 2005 18:40 Go to previous message
Kevin Barnes is currently offline Kevin BarnesFriend
Messages: 174
Registered: July 2009
Senior Member
Josh wrote:
> I have managed to get Cygwin to run as an external tool through Eclipse.
> Upon running, it opens a new console session. I'd like to be able to
> send 'Ctrl-C' events through the console to this Cygwin session, however
> the Eclipse GUI intercepts the event and interprets it as the Windows
> 'copy' command. I'm using XP, in case that info helps.
>
> I have noticed that there is a way to send an EOF event by setting up a
> special keybinding in the Run/Debug category. Is the EOF event just a
> way of sending ASCII code 0x04 or 0x26? If so, shouldn't there be a
> similar way to send 0x03 (ETX (which is what 'Ctrl-C' normally does in
> the Cygwin environment, I think))?
>
> The reason I need to do this is that I'm running a Python interpreter in
> the Cygwin session and need to be able to interrupt it by hand. 'Ctrl-C'
> works in a plain Cygwin session, but not in Eclipse.
>
> Thanks for any suggestions,
> Josh
>
>

The EOF command works by closing the input stream associated with the
console. The platform provides no means to send 0x03 to the process.
Previous Topic:pserver vs extssh
Next Topic:Error occurs when closing *xml file
Goto Forum:
  


Current Time: Sat Apr 27 02:26:42 GMT 2024

Powered by FUDForum. Page generated in 0.08124 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top