const classjig::Term
sys::Obj jig::Term
Terminal and process utilities.
- bold
const static Str bold := "\u001b[1m"- clearLine
const static Str clearLine := "\r\u001b[2K"- dim
const static Str dim := "\u001b[2m"- exec
static Int exec(Str[] cmd, |Str onLine, |->Bool? isDone := null)Run process and deliver each line of merged stdout/stderr to
onLine; returns exit code.Process.joindoes not wait for the output pump thread, so after exit we wait untilisDonereturns true, or output has been quiet for 250ms.- fant
static Str[] fant()Path to
fantlauncher for current runtime.- green
const static Str green := "\u001b[32m"- isTty
static Bool isTty()Is stdout an interactive terminal.
- magenta
const static Str magenta := "\u001b[35m"- red
const static Str red := "\u001b[31m"- reset
const static Str reset := "\u001b[0m"- upClearLine
const static Str upClearLine := "\u001b[1A\u001b[2K"- width
static Int width()Terminal width in columns, or 80 if unknown.