Console is used to run external programs and capture output.
Slots
- appendSource
-
Write the string to the end of the console
- busySource
-
readonly Bool busy := false
Return true if the console is busy executing a job.
- clearSource
-
This clear()
Write the string to the end of the console
-
private Command copyCmd := ...
-
static internal Void doRun(Method method, ExecParams params)
- execSource
-
This exec(Str[] command, File? dir := null)
Execute an external process and capture its output in the console. See
sys::Process
for a description of the command and dir parameters. -
static internal Void execDone(Str frameId)
Called on UI thread by execRun when process completes.
-
static internal Void execRun(ExecParams params)
This is the method which executes the process on a background thread.
-
static internal Void execWrite(Str frameId, Str str)
Called on UI thread by ConsoleOutStream when the process writes to stdout.
-
private Command hideCmd := ...
-
internal ConsoleModel model
-
internal Void onClose()
-
internal Void onCopy()
- onGotoMarkSource
-
override Void onGotoMark(Mark mark)
Overrides flux::SideBar.onGotoMark
Doc inherited from flux::SideBar.onGotoMark
Callback before the current view is jumped to the specified mark.
- onLoadSource
-
override Void onLoad()
Overrides flux::SideBar.onLoad
Use
Frame.console
to get the console. - prefAlignSource
-
override Obj prefAlign()
Overrides flux::SideBar.prefAlign
Console is aligned at the bottom of the frame.
-
internal RichText richText
-
internal This run(Method method, Str[] params)
Run the given function in another thread. TODO - this function is experimental and will change!