Module modules.terminal.commands

Commands for the terminal module.

Functions

close () Shuts down the terminal server and closes sockets.
print (txt) Prints text to the current buffer on a new line.
receive () Receives and returns terminal server ouput.
send (txt) Sends text to the terminal server as input.
start (port) Starts the terminal server on a specified port.


Functions

close ()
Shuts down the terminal server and closes sockets.
print (txt)
Prints text to the current buffer on a new line. This is generally called when data is received from the terminal server to be displayed.

Parameters

  • txt: The text to print to the current buffer.
receive ()
Receives and returns terminal server ouput.
send (txt)
Sends text to the terminal server as input.

Parameters

  • txt: The text input to send to the terminal server. If none specified, the current selection or the contents of the current line is used as input.
start (port)
Starts the terminal server on a specified port. Then it creates server and client objects.

Parameters

  • port: The port to start the terminal server on.

Valid XHTML 1.0!