Graphics.UsingTheCommandConsole - lordmundi/wikidoctest GitHub Wiki
Using the Command Console
« Using the Trackcam plugin | EDGE User’s Guide | Adding a simple overlay »
Simple directions
- Go to Help→Console or hit the "`" key (sometimes called 'backtick')
- Type in tcl commands to be executed.
The Tcl Command Console in EDGE
What's really going on
The EDGE tcl command console is based on "tkcon", a tcl/tk console used by many applications.
It has many features, including command and variable name completion, syntax highlighting, command history, and others. You can read more about it here: http://tkcon.sourceforge.net/docs/purpose.html
Launch the command console from the help menu as described above. Type or paste in tcl code. Results are printed inline in the console. Note that when the console is open, "puts" is redirected to go to both the regular console and this tcl command console, which can be helpful on platforms such as Windows.
Use the "History" menu to see previous commands, or just hit "Up" on the keyboard to cycle past commands.
One useful feature is the ability to attach to other interpreters, including over a socket. This can be used to connect the console of a Remote Commanding Server socket in another instance of edge. Go to "Console→Attach To→Socket→Create Connection". Then, enter the host and port of an EDGE RCS. Commands in the console will get executed on the remote machine, but results are not currently brought back to the console. To get the results, you could set a variable to the output, then print it out, such as "set result []"
« Using the Trackcam plugin | EDGE User’s Guide | Adding a simple overlay »