Just like Visual Studio Code's integrated console, I would like to know how it is implemented.
I tried to read VSCode's source code, and I found that it is using xterm.js to provide terminal. Then I tried to read xterm.js's source code, but I didn't find any native(?) code about creating or integrating a terminal.
Maybe I missed something, please give me some advice if you can.
Is it a child process with its window SetParent
ed to its parent?
Edit:
My goal is to embed a console window in my application, so that I can quickly run some scripts when using it, just like the experience in VS Code.
Sorry for the ambiguity in the original question.