The problem must be fixed in Theia IDE first, then picked up by Arduino IDE, then Terminal#sendText can be used as in VS Code. This is unfortunate. I will look into this more and give you a workaround as a PR soon and submit an issue in https://github.com/eclipse-theia/theia/.
As a quick hack, you can use pty#handleInput instead. For example, this works:
New thread for https://github.com/arduino/arduino-ide/issues/58#issuecomment-1725026196.
@Quency-D, I can confirm this is a bug with the pseudoterminal in Theia. Related module: https://github.com/eclipse-theia/theia/blob/03d0cb83dc72f7a72158d69478494c7e99098e39/packages/plugin-ext/src/plugin/terminal-ext.ts.
The problem must be fixed in Theia IDE first, then picked up by Arduino IDE, then
Terminal#sendText
can be used as in VS Code. This is unfortunate. I will look into this more and give you a workaround as a PR soon and submit an issue in https://github.com/eclipse-theia/theia/.As a quick hack, you can use
pty#handleInput
instead. For example, this works:Good luck with your project!