Terminal Widget
Experienced users often find CLI more efficient for certain tasks, as they can quickly execute commands. You may want to simulate a virtual environment in your course for learners. You can use the 'Terminal widget' to add an integrated Ubuntu 20.04-based terminal.
We'll cover the following
This is what it looks like:
What do I need to know?
The "Start Script" field at the top allows specifying the commands that should run every time the terminal gets connected.
Once the terminal gets connected, authors/learners can open multiple tabs by clicking the + button.
The terminal below uses cd usercode
command as the start script.
Note that learners can not change the start script.
Can I add multiple terminals?
Authors can add multiple terminals in a single lesson. However, there are a few restrictions that an author needs to keep in mind.
Only one terminal connects at a time.
Connecting one terminal will disconnect the previous running terminal and its progress will be lost.