on_stdout Event

Fired when data (complete lines) come in through stdout.


class RexecStdoutEventParams(object):
  def text() -> bytes: ...
  def eol() -> bool: ...

# In class Rexec:
def on_stdout() -> Callable[[RexecStdoutEventParams], None]: ...
def on_stdout(event_hook: Callable[[RexecStdoutEventParams], None]) -> None: ...


The on_stdout event is fired every time the process on the remote host outputs a line in its standard output. The incoming data is provided through the Text parameter.

EOL indicates whether the eol string was found on the end of Text or not. If the eol string was found then EOL is True, otherwise it is False.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8161]