5

Requirement is to embed a terminal in Electron app wherein all commands which I can run from bash can be run in the embedded terminal too like vs-code editor.

Suppose I want to 'npm install' I want it to be possible through my embedded terminal too. Could anyone suggest possible solutions ?

Munishwar
  • 51
  • 2
  • 5
  • yeah i have heard about few like xterm and hyper but it is giving some errors.can you please name that some packages? – Munishwar Sep 24 '18 at 12:12
  • I am talking about my own electron app. i don't want to add terminal in atom. – Munishwar Sep 24 '18 at 12:18
  • Oh sorry, I can't believe I read "electron" as atom. – Andrew Li Sep 24 '18 at 12:28
  • 1
    VS Code is using [xterm.js](https://xtermjs.org/), which is a npm package you can install. Have a look at that... – Alexander Leithner Sep 24 '18 at 13:11
  • Yes,but the xterm.js just prints the output but not it works like terminal that means read and write – Munishwar Sep 25 '18 at 08:39
  • Does this answer your question? [How do I connect xterm.js(in electron) to a real working command prompt?](https://stackoverflow.com/questions/63390143/how-do-i-connect-xterm-jsin-electron-to-a-real-working-command-prompt) – Giorgos Xou Jun 04 '22 at 19:18

0 Answers0