Links
Comment on page

Terminal

Summary

The terminal allows your users to interact with their coding environment via a command line interface.
Two terminal tabs

Features

The terminal includes the following features:
  • Backed by actual terminal, no simulation
  • Multiple tabs
  • Full curses (e.g. programs like htop )
Next Tech terminal

Global Settings

Send Ctrl+C

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.

Clear Terminal

If enabled, the terminal will be cleared before a new command is sent to it. Defaults to enabled.

Run Current File

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.

Terminal-Specific Settings

Starting Command

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.