notifyDebugUI sends a DebugToggleMsg into the running program so it recomputes layout. Called from /debug after flipping state.
()
| 74 | // notifyDebugUI sends a DebugToggleMsg into the running program so it |
| 75 | // recomputes layout. Called from /debug after flipping state. |
| 76 | func notifyDebugUI() { |
| 77 | if activeProgram != nil { |
| 78 | activeProgram.Send(ui.DebugToggleMsg{}) |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | // envTruthy reports whether an env var is set to a value humans normally |
| 83 | // mean as "yes". Kept tiny on purpose: the harness has no central config |