This article is currently available in English. Your interface language stays selected.

WORKSPACE GUIDE

Terminal, Editor, and execution

Learn how immediate BASIC, persistent REPL variables, Editor Play, INPUT, and OPEN / LOAD / RUN fit together in Cortex.

Cortex BASIC reference · language features and browser requirements.

Try an idea immediately

The Terminal is an immediate BASIC REPL. It evaluates statements, keeps variables between commands, and supports multiline constructs when the grammar needs them.

REFERENCE TRANSCRIPT
> PRINT 2 + 2
4
> x = 25
> PRINT x * 4
100

Try these commands in the local Web IDE Terminal. Variables persist between commands until RESET, a program RUN, a worker restart or a page reload.

OPEN, LOAD, LIST, and RUN have different jobs

OPEN
Opens a program in the Editor.
LOAD
Selects a BASIC program or project file for execution.
LIST
Displays the complete loaded source as read-only Terminal text, including unsaved edits. Source editing stays in the Editor.
RUN
Executes the loaded or current program.

These terminal commands coexist with BASIC statements. BASIC file OPEN and the terminal’s OPEN action need unambiguous dispatch; they are not interchangeable.

One runtime behind two workflows

Terminal commands and RUN now use the shared local interpreter. INPUT waits in the command field; Stop or Ctrl+C cancels it. Enter submits, Shift+Enter adds a line, arrows recall history, and Tab completes a unique suggestion. Editor Run uses the same runtime. Classic graphics, sound and BASIC-created buttons are available; modern UI controls, media and device APIs are also available, subject to browser support.

← Back to Docs