Skip to content

Output Terminal

Description and Purpose

Learning Environment (LE) layout components are interactive modules that typically replicate a real-world tool and allow learners to take specific actions in the exercise. Depending on which components are used in an exercise, different tests and checkpoint functionality may be available.

An Output Terminal is an LE layout component used to display the output of code from the Code Editor. Learners cannot type or enter commands into an Output Terminal. The Output Terminal can display a result, error, or warning from the code written in the Code Editor after the “Run” button is clicked and the code has been executed. If the code does not include any type of print statements and does not render any warnings or errors, the Output terminal will be blank upon hitting the “Run” button.

Note: An Output Terminal is not useful on its own and must be used alongside a Code Editor.

Content Location

This is a Layout Component that can be added to an exercise in a lesson, a project, or a code challenge assessment.

An exercise, represented as a rectangle, contains four other rectangles labeled narrative, checkpoints, Code Editor, and Output Terminal.

Component Selection in Author

To use an Output Terminal in the LE, click “Select Layout” and choose one from any of the following options:

  • Output Terminal: Do not select this option as the Output Terminal only displays an output based on code written in the Code Editor.
  • Code Editor, Output Terminal: This layout is useful for exercises that expect output to a console when the code is run.
  • Code Editor, Output Terminal, Image: This layout is useful for exercises that want to show a diagram or visual and require the user to run code.
  • Code Editor, Output Terminal, Web Browser: This layout is useful for exercises that expect the user to run code and see the output, while also being able to display a website or visualization.
  • Code Editor, Read-Only Code Editor, Output Terminal: This layout is useful for exercises that output compiled code into another code file and additionally produce relevant output to the console.
  • Code Editor, Output Terminal, Terminal: This layout is useful for exercises that expect the user to write code, run commands directly, and see standard output on behind-the-scenes build steps that happen when the “Run” button is clicked.

Fields in Author

There are no configuration options for this component.

Examples