The console has two purposes. It logs various system messages, such as PCC2's startup phase. It also acts as the interface to the script interpreter. You can enter expressions and one-line commands. When you enter an expression, both the expression and its result will be logged on the console. You can therefore use this as a calculator ("what is 17*4?"), and to check PCC2 expressions (Distance(Ship(10), Ufo(20)), Ship(17).Name) or commands (SetMission 4). For details, refer to PCC2 Interpreter Documentation.
You can use the following keys:
- Enter: Evaluate expression
- Up, Down: Recall previous input and output into input line
- Ins: Insert last result into input line
- Tab: Attempt to complete current word (as property name of current object)
- Alt‐V: List user-defined properties of the current object, and their values
- Shift‐Up, Shift‐Down: Scroll through previous output
- Shift‐PgUp, Shift‐PgDn: Scroll through previous output
When PCC2 is executing a long-running script, it will not otherwise react on keypresses. In this case, press Ctrl‐Pause or, if your computer doesn't accept that, Ctrl‐C, to abort that script (PCC2 will ask for confirmation).
Reference
- Keys:
- Alt‐C from almost everywhere
- Related command:
- UI.PopupConsole
- Script context:
- same as invoking screen