Render terminal inside exec nodes using xtermjs (same as vscode)

Render terminal inside exec nodes using xtermjs

Inside an exec node, there can exist a new tab where the terminal is going to be rendered.
Each spawned process can create a new tab within the terminal tab.
There should exist a new config prop to let users enable this terminal feature, since it will consume server resources for the streaming stdin/stdout/stderr. Moreover, when the editor is disabled in settings.js, all exec nodes should have this feature disabled by default.

This already exists in NR, but it's used when installing/updating/removing nodes.

The goal is to display the log, right? So we can use the existing one in a new tab of the exec node. I'm not sure how useful it is, but maybe for debugging. Note that what is displayed is what comes out of the node.

Yes, the main goal is debugging. When we have too many exec nodes, sending stdout/stderr in the main process terminal isn't good because everything gets mixed up.
I also want to use it to interact with the child process interactively with my keyboard (stdin) when running debuggers like the one for Python scripts.

If someone is going to code this in, then if a user has only read-only access to the Editor, they should only have read-only access to the terminal.

1 Like