Skip to content
Loamis build console Read only

terminal

READ ONLY: generated from the specification

3 states, 6 events, 14 rules. Initial state: following.

Transition graph

followingdetachedcleared

Double outline: the initial state. Dashed line and ◆: the rule has a guard.

Transitions, as a list

  1. following, on lineAppended, to following, guarded: event.count > 0
  2. cleared, on lineAppended, to following, guarded: event.count > 0
  3. detached, on lineAppended, to detached, guarded: event.count > 0
  4. following, on scrolledUp, to detached, guarded: ctx.lines > 0
  5. detached, on scrolledToBottom, to following
  6. following, on clear, to cleared
  7. detached, on clear, to cleared
  8. cleared, on clear, to cleared
  9. following, on runStarted, to following
  10. detached, on runStarted, to detached
  11. cleared, on runStarted, to cleared
  12. following, on runFinished, to following
  13. detached, on runFinished, to detached
  14. cleared, on runFinished, to cleared

Live runner

Current state: following

a whole number; the machine samples -1, 0, 1, 3

Context

lines
0
running
false

View flags now

ariaBusy
false
followTail
true
showJump
false
showEmpty
true
copyEnabled
false
clearEnabled
false
lineCount
0
defaultFocus
"log"

Effects emitted

None.

Trace

No event sent yet.

States

following

initial

View flags

ariaBusy
false
followTail
true
showJump
false
showEmpty
true
copyEnabled
false
clearEnabled
false
lineCount
0
defaultFocus
"log"

Rules that leave it

  1. lineAppended to following when event.count > 0 ; sets lines := ctx.lines + event.count ; emits scrollToEnd()
  2. scrolledUp to detached when ctx.lines > 0
  3. clear to cleared ; sets lines := 0 ; emits dropLines()
  4. runStarted to following ; sets running := true
  5. runFinished to following ; sets running := false

detached

View flags

ariaBusy
false
followTail
false
showJump
true
showEmpty
true
copyEnabled
false
clearEnabled
false
lineCount
0
defaultFocus
"log"

Rules that leave it

  1. lineAppended to detached when event.count > 0 ; sets lines := ctx.lines + event.count
  2. scrolledToBottom to following
  3. clear to cleared ; sets lines := 0 ; emits dropLines()
  4. runStarted to detached ; sets running := true
  5. runFinished to detached ; sets running := false

cleared

View flags

ariaBusy
false
followTail
true
showJump
false
showEmpty
true
copyEnabled
false
clearEnabled
false
lineCount
0
defaultFocus
"log"

Rules that leave it

  1. lineAppended to following when event.count > 0 ; sets lines := ctx.lines + event.count ; emits scrollToEnd()
  2. clear to cleared ; sets lines := 0 ; emits dropLines()
  3. runStarted to cleared ; sets running := true
  4. runFinished to cleared ; sets running := false
All machines