|
pas
|
Static Public Member Functions | |
| static | init (?callable $line_function=null) |
| static | getNextLine () |
|
static |
Blocks until the user has submitted a line and then returns it.
| BadMethodCallException | if pas\stdin was not initialized via pas\stdin::init() |
|
static |
Initializes pas's STDIN handling, if it wasn't already, enabling the "stdin_line" event and the stdin::getNextLine() function. After this, STDIN is in pas's hands, and there's no way out.
| callable | null | $line_function | The function to be called when the user has submitted a line. |
1.8.16