The callback trigger on ITerminalInstance.onData() receives a string containing the raw pty output including the ANSI Control characters. Although this might be useful for some clients I think the majority is not interested in ANSI Control characters since the interpretation is not easy. I therefore suggest that the terminal provide two different listeners. One raw listener that includes the data like it is today and one line based listener that fires if
- a line got added to the output
- when a line got changed.
The event should contain the line number as well.
The callback trigger on ITerminalInstance.onData() receives a string containing the raw pty output including the ANSI Control characters. Although this might be useful for some clients I think the majority is not interested in ANSI Control characters since the interpretation is not easy. I therefore suggest that the terminal provide two different listeners. One raw listener that includes the data like it is today and one line based listener that fires if
The event should contain the line number as well.