qwefgh90 / ng-terminal

NgTerminal is a terminal component on Angular. the Ivy distribution's been released from v5.0.0.
https://qwefgh90.github.io/ng-terminal/
Other
125 stars 27 forks source link

commands does not working as expected #11

Closed surjit closed 5 years ago

surjit commented 5 years ago

Hi,

How to get it working with actual terminal e.g live linux commands and output on Ubuntu

Thanks,

qwefgh90 commented 5 years ago

Hello :)

As you know, ng-terminal is web terminal emulator based on xterm. It is a simple library only having a presentation layer.

So if you want to run linux shell on ng-terminal, you should develop a simple websocket server which a browser can connect to. And you make a web server to internally communicate with a bash process via a library for pty like node-pty.

Finally, ng-terminal have a simple role to show data sent from websocket or send data to the server via websocket.