Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Contributing local terminal support for Windows

Dear CDT Committers,

 

There is a long-standing request to support a fully working local terminal inside an Eclipse view (that is, including tab completion, cursor-up history, and Ctrl+C signal handling).

 

For Linux, this is already working through the TM Local Terminal [1], or its clone the Google ELT plugin [2];

For Windows, this has always been blocked by the lack of a Windows PTY emulation (bug 360517 [3]).

 

At WindRiver, we have now gotten this to work by using the Open Source WinPTY library [4], which is under MIT license.

This means, we can now open a fully working CMD prompt inside an Eclipse view (history, tab completion and signal handling).

Bash-like shells like MSYSGIT also fully work in this Eclipse view.

 

We would like to contribute this to the Eclipse CDT as part of CDT’s PTY handling in org.eclipse.cdt.core/utils [5].

Part of the code would be contributed from us (Wind River) under EPL, but part of the code must be the MIT-Licensed winpty code.

We need to provide a pre-built executable based on winpty, as well as a pre-built DLL, and link against that dll using Java native code.

 

We suggest redistributing the MIT licensed source code with the CDT, along with the exe and DLL built from it through CDT fragments.

 

Does the CDT community agree with this approach in principle ?

If yes, then how shall we proceed entering the respective CQ for adopting the MIT code into the CDT ?

 

References:

[1] http://stackoverflow.com/questions/1562600/is-there-an-eclipse-plugin-to-run-system-shell-in-the-console

[2] http://code.google.com/p/elt/

[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=360517

[4] https://github.com/rprichard/winpty

[5] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/tree/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty

 

Thanks,

Martin

--

Martin Oberhuber, SMTS / Product Architect – Development Tools, Wind River

direct +43.662.457915.85  fax +43.662.457915.6

 


Back to the top