Running and the Console
Running
Press Run on the toolbar, F5 or Ctrl+E. While a run is going, the button reads Stop, and Stop or Shift+F5 ends it. A run belongs to its document: switching tabs while it goes leaves it going, and closing the document ends it.
Run runs the graph in front, and the document's entry graph - the one the outline marks entry - when the Document graph itself is in front. It is the same in both run modes, so one part of a document is tried on its own by bringing it forward. Divooka Player, stew and a published program start at the entry graph.
What runs depends on the graph:
- A Flows graph runs its active nodes and everything they depend on, and nothing else.
- A Function runs every node, from its Input to its Output.
- A Routine, an Events graph or a state machine runs from its start, step by step.
When the run ends, the status bar says how it went, and the Properties panel turns to its Run face: Finished or Failed, how long it took and in which mode, the problems that stopped it, and its Run log - what it printed. A run never changes the document; the next run starts from what is on the canvas.
To see a node's result at full size after an interpreted run, select it and press Alt+Enter, or right-click it and choose Open preview in window: it opens in a window of its own. Before a run there is nothing to show, and the status bar says Run the graph first; there is nothing to preview yet.
Stopping
Stop ends a run before its next node or statement. A node busy in code of its own that does not listen for Stop - a long download, a sleep - holds it; after three seconds the run is given up, the status line reads The run did not stop and was abandoned., the console's header Did not stop within 3 s, and Run is yours again. To stop such a run at once, choose Standalone process in the run target list left of the Interpreted / Compiled switch: the document then runs in a process of its own (better support for Stop on demand), which Stop ends within about half a second whatever its nodes are doing. Divooka Editor in the same list runs it in the editor again.
The two run modes
The switch on the toolbar runs the document one of two ways. Each tab has its own setting, and a document opens on Interpreted; the status bar names the mode beside its message. Hover over either half of the switch for the difference in a few lines.
| Interpreted | Compiled | |
|---|---|---|
| How it runs | Walks the graph node by node | Builds the document into a program first, then runs that |
| Speed | Starts at once; slower on heavy work | Takes a moment to build, then runs far faster |
| On the canvas | Every node that ran shows the time it took, and a preview of what it produced where there is something to show; a failing node is outlined in red | Nothing: a compiled program reports only what it printed and returned |
| The status bar | 4 nodes in 99 ms | Ran compiled in 361 ms |
| Debugging | Breakpoints, pausing and stepping | The same, when the run has a breakpoint to stop at - see Debugging |
| Stop | Stops before the next node or statement | Stops before the next statement when the run has a breakpoint to stop at; otherwise the program cannot be interrupted, and its result is discarded when it lands |
Work interpreted while you build, where every node shows what it produced, and switch to compiled when a run is heavy - a long loop, a large image, a big table - or to check that the program behaves as it will when it runs outside the editor, where it runs compiled by default (see Exporting a program). A document, its data members and its starting values behave the same both ways.

The running graph
While a Flows graph runs, a strip moves across the top of the canvas and a badge reads Running · 2 of 5 nodes, counting as nodes finish - or Running alone, where the run says no more, as a compiled run does. Nodes yet to run are dashed, the one running glows, and each finished one gets a tick. Stopping the run leaves no mark behind.
Active nodes
On a Flows graph, a run starts from the nodes marked Active and runs only what they need. Select a node and press Space to mark it active or not, or use the Active switch in its Properties. The line above the canvas counts them - 1 active · 4 will run - and the nodes a run would not touch are dimmed. A run with nothing active reads Nothing ran (no active nodes), in either mode.
Footer previews
A node of a Flows graph can show its result under it after a run: the Footer preview switch in its Properties, under Execution, beside Active and Cache result. A node with several outputs has Output shown beside it - First with a value, or the output you pick. P turns the footer preview of the selected nodes on and off, all at once. A Preview node shows its value this way from the start; every other node starts with nothing under it. Appearance and settings ▸ Node previews still hides them all.
Cached results
A slow node - one that loads a large file, or renders - can keep its result between interpreted runs. Select it and press Shift+Space, or turn on Cache result in its Properties: the next runs reuse what it produced and skip it and everything before it, until something it depends on changes. The status bar counts what was reused - 1 node in 5 ms · 10 reused. Switching it on right after an interpreted run keeps that run's result at once. Turn it off and on again to recompute it on purpose, for example when the file it reads has changed.
Reactive mode
Reactive, on the toolbar or F8, runs the document again, interpreted, a moment after every edit that changes what it computes, reusing every node the edit did not reach. Turning it on runs the document at once.
The console
What a run prints - Print Line, Print, and anything else that writes - goes to the console dock under the canvas, and the console is a terminal: what a program prints is drawn as a terminal draws it, colours and cursor moves included, and what you type goes to the program where it reads. It holds the program's own output and nothing else - no times, no rows about the run - and what was printed to standard error is red, in its place among the other lines. A line a C# file the document uses prints with Console appears as it is printed, as a node's does.
The dock stays shut while a run prints quietly: the status bar counts the lines, a dot beside the count says there is something unread, and a short note appears over the canvas. It opens by itself when a run writes to standard error, fails, or waits for you to type something. Open or close it with Ctrl+`, or by clicking the line count in the status bar. Drag its top edge to make it taller or shorter.
The right of the console's header says how the run is doing or how it ended - Running…, Waiting for input, 7 nodes in 120 ms, Run failed: and why, The run was stopped. - with Copy (Copy all), which takes everything the console holds and, after a failure, the failure in full, and Clear, which empties it while the run goes on.
The console belongs to the run, not the tab: a run of one document that pauses or ends while another is in front still shows its output. Drag across it to select, double-click a word or triple-click a line; Ctrl+A selects everything and Ctrl+C copies what is selected. Right-click it for Copy, Copy all, Select all, and Paste while the program runs. The status bar's own message can be copied too: click it.
When a run asks for input
A node such as Read Line waits for a line of text. The dock opens on the console, which takes the keyboard, and the console's header and the status bar read Waiting for input. Type where the program asks, after its prompt, and correct the line there - Backspace and Delete, the arrows, Home and End - then press Enter to send it. Several lines pasted at once answer as many reads in turn, and Ctrl+D at the start of a line ends the input.
While the console has the keyboard, every key goes to the program but the ones that run, stop and step it - F5, Shift+F5, F10, F11 and Shift+F11 - and Ctrl+`. Ctrl+C with nothing selected stops the run, as it would stop a program in any terminal.
Programs that use the whole console
The console nodes do what a terminal program needs, the same in the editor, under stew and in a published program: Read Key reads one key as it is pressed, by its name (a, Space, Ctrl+S), and Key Available says whether one is waiting, so a program can animate while it listens; Terminal Width and Terminal Height give the console's size in characters; Clear Screen, Set Cursor Position and Show Cursor place what is printed; Set Text Colour, Set Background Colour and Reset Colours colour it; and Use Alternate Screen gives a full-screen program a page of its own, putting the console back as it was when it leaves. While a program reads keys one at a time, Ctrl+A is the program's, and Ctrl+Shift+A selects everything in the console instead.

The Terminal Screen nodes draw a whole screen at a time - text, boxes, gauges, sparklines, and pixels two to a character cell - and Present sends only what changed. Terminal › Terminal Demo in New from examples is a program built with them: plasma, metaballs, a tunnel and a reaction-diffusion pattern, switched with 1 to 4 and Space, until Q.
A run in a standalone process gets a real Windows console, drawn in the same dock: Divooka Compute carries Microsoft's own console host, OpenConsole, so a full-screen program there gets the keyboard by itself.
The other tabs
- Locals and Call stack show where a paused run is - see Debugging.
- Search (
Ctrl+F) finds documents, graphs, nodes by title, name or value, members, comments and groups, in this document, the open ones or the whole workspace. - References lists every node that reads, sets or calls a member: right-click a data member's node, or a Get or a Set, and choose Find All References.
- Workflows lists a workflow's runs and what each waits for - see Graphs and members - and Scheduled the documents the Task Scheduler runs - see Task Scheduler.
- Terminal (
Ctrl+Shift+`) is a command line in the workspace folder, and Immediate (Shift+F4) a prompt for Python or C# against the document in front - see The window.