Comment on page
Terminal
The terminal allows your users to interact with their coding environment via a command line interface.

Two terminal tabs
The terminal includes the following features:
- Backed by actual terminal, no simulation
- Multiple tabs
- Full
curses
(e.g. programs likehtop
)
Next Tech terminal
If enabled, the keyboard shortcut
ctrl+c
will be sent to the terminal when the Run Code button is pressed. This will display as ^C
before your script in the terminal, stopping the current program execution with (if there is a program executing) before running the code.If enabled, the terminal will be cleared before a new command is sent to it. Defaults to enabled.
If enabled, the current file's contents will be piped into the terminal (followed by a newline) when the primary button is pressed. For example, if you'd like to start a Ruby shell and pipe in commands, enable this. Defaults to disabled.
This setting does not currently support whitespace-sensitive languages.
Each terminal tab can have its starting command configured. This will automatically launch certain software other than the default
/bin/bash
. This can also be used to run a startup script, if you prefer to display the script output to the user.To get started, just click the blue sliders at the bottom left of a terminal tab, which will open this modal:

Enter any command you would like and click Save to close the modal.
Heads up! You will need to launch a preview of the content to see this in action. Simply clicking the Preview button won't do it, since the terminal is already loaded.
Last modified 2yr ago