Terminal
The Terminal provides an interactive JavaScript command environment for testing, debugging, and developing Total Control scripts and APIs.
- Terminal 1 / Terminal 2 / Terminal 3 — Provides three independent terminal sessions so users can keep separate command histories and testing contexts.
- Interactive Commands — Allows users to enter and execute JavaScript commands directly, which is useful for testing APIs, FindNode queries, device operations, and small portions of script logic.
- Command History — Each terminal keeps its own command history so previously entered commands can be recalled and reused.
- Save History — Saves the recent command history for a terminal so it can be restored and reused later.
- Shortcut Keys — Each terminal can define up to five shortcuts, mapped to Ctrl+F1 through Ctrl+F5, for frequently used commands or command templates.
- Cursor Position (__) — If a shortcut contains
__, the two underscores mark where the text cursor will be placed after the shortcut expands, allowing users to immediately enter the variable part of the command. - Reset Rhino — Stops the current Rhino interpreter and creates a new one. This is useful when modules loaded with
require()have changed and need to be reloaded without restarting Total Control. - Script Testing — Useful for quickly checking return values,
lastError(), FindNode actions, JavaScript modules, and other runtime behavior before placing the code into a larger script.