Skip to content

Capturing Terminal Output #603

@Dj-1112

Description

@Dj-1112

Environment details

  • OS: Linux
  • OS version: ubuntu 20.04
  • node-pty version: 0.10.1

Issue description

Hi,
We have integrated a web-terminal into our web application, we are using node-pty in the back end and x-term on the front end.
The terminal is working as expected, but we need to capture the output that is coming from the terminal.
We are using web-sockets to send data back and forth, the problem is that everything i type is being sent back and forth and since the shell is also echoing the commands that is also being sent back and forth.
How do we just capture the output of any command that got executed? so that we can parse it and display a success message else where in the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions