ExTermbox.Initializer (ExTermbox v1.1.5)

View Source

Handles the initial setup and supervision of Termbox resources.

Summary

Functions

Handles a single line received via PTY during the initialization handshake.

Functions

handle_pty_line(line, state)

Handles a single line received via PTY during the initialization handshake.

Takes the line and the current PortHandler state.

Returns:

  • {:cont, new_state}: If the handshake should continue to the next stage.
  • {:socket_ready, socket, new_state}: If the handshake is complete and the socket is connected.
  • {:halt, {:stop, reason, new_state}}: If the handshake failed irrecoverably.