The zyBooks Interactive terminal allows students to run code and interact with their program by providing inputs inline during the program run similar to running a program locally in a terminal.
This feature can be enabled on a per zyLab basis. You can enable the interactive terminal from the edit experience of a zyLab by checking the box.
Note that if you would like to enable this feature for a zyBooks Maintained Lab (ZML) you will need to use the "clone" feature. Please refer to this article on customizing ZML's.
Once you have enable the feature you and your students will be able to view the terminal in "Develop" mode of the zyLab.
To get started hit the orange "Run Program" button or simply type the command "run" in the window.
The zyBooks Interactive Terminal also supports the following commands:
- run <args>
- run <<< input_text
- tableflip
- help
- clear
The zyTerminal will run the code provided by the student in the code window for the zyLab. The terminal will hold for input just like a normal terminal would. Please note that if you leave the terminal open for too long without interacting the program will time out.