2016-06-20 10:50 GMT+02:00 Max Rydahl Andersen <[email protected]>:

Hi Max!

> Very nice idea.
>

Glad this idea please you:)


> Similar to what we've had for Forge tools in JBoss Tools for a while.
>

You used Terminal too? It was very difficult for me to implement this
interpreter feature because TM doesn't provide some callbacl like:

 * the user has typped "Enter" to validate the command.
 * the command is finished.

So I had stuidied ANSI/VT100 Terminal Control
http://www.termsys.demon.co.uk/vtansi.htm and it works for my OS Windows,
but I don't know if it works with other OS.
For instance, I have emulated Enter when I found *Query Cursor Position
<ESC>[6n (*Requests a *Report Cursor Position* response from the device).

It works well with Windows, but I don't know if other Shell OS works like
this?

Your idea about hooking it into the native terminal itself is great and
> makes it
> more readily available
>

Thanks!


> - did you
> open any bugzillas/patches for the terminal to allow this kind extension
> without
> a custom terminal ?
>

Yes I have created https://bugs.eclipse.org/bugs/show_bug.cgi?id=496109

The "Local Terminal (Interpreter)" is an extension point of TM to defines a
new Local and add my own listener to track character. But I think it should
be better that "Local Terminal" hosts my code or better that
http://git.eclipse.org/c/tm/org.eclipse.tm.terminal.git/tree/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java#n281
provides listener. Indeed in my case I have copied/pasted this classes and
adapt it to retrieve Enter and line text (without other character like
color, font, etc)

My fear is that Eclipse TM seems not very active, so I hope that guys like
you will ping https://bugs.eclipse.org/bugs/show_bug.cgi?id=496109 to
motivate the author.

Many thanks for your help!

> /max
>
> Hi Ilya,
>
>
> 2016-06-17 21:51 GMT+02:00 Ilya Buziuk <[email protected]>:
>
>> Hello, Angelo
>> I do believe this is very useful functionality for bower / npm.
>>
>
> Very glad this idea please you!
>
>
>> Basically, bower / npm tools covers only install & update, which is
>> pretty limited and will not replace CLI in many.  cases. I really like the
>> idea with providing extension point for different interpreters, so that
>> other CLI based tools can be adapted for the terminal.
>>
>
> It's exactly my idea! I'm cleaning my code to support extension point. For
> the moment, I will host my plugin in typescript.java.
>
> Here 2 new demos with Angular2
>
>  * with "ng new" : after ng new create an angular2 project, the
> interpreter create an Eclipse Project and opens the generated package.json:
>
>
> ​
>
>  * with "ng server": when you start ng server, the interpreter open a Web
> Browser when trace "Serving on http://localhost:4200/"; appears:
>
>
> ​
> I think, we can imagine a lot of features with this interpreter.
>
> Regard's Angelo
>
>>
>>
>>>
>>> _______________________________________________
>>> wtp-dev mailing list
>>> [email protected]
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/wtp-dev
>>>
>>
>>
>> _______________________________________________
>> wtp-dev mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/wtp-dev
>>
>
> _______________________________________________
> wtp-dev mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/wtp-dev
>
> /max
> http://about.me/maxandersen
>
> _______________________________________________
> wtp-dev mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/wtp-dev
>
_______________________________________________
wtp-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to