klyn.gui.terminal.Terminal.run
method
public run() as Int
Description

Runs the interactive event loop and restores the terminal on exit.

Returns

Exit code supplied to exit, or zero on normal completion.

Throws
  • IOException if the input is closed or unavailable. Windows requires a console input handle; a redirected pipe is not a console.
Example
terminal = Terminal()
terminal.run()