Skip to content
Myr

docs(focus): add some GoDoc links and add note on focus support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent e58efab · Browse files · 1 file+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−2 removed

  • other:+6 added−2 removed

1 file+6 added−2 removed

modified:options.go+6 added-2 removed
233 unmodified lines
234 p.fps = fps235 }236}237238// WithReportFocus enables reporting when the terminal gains and lost focus.238// WithReportFocus enables reporting when the terminal gains and loses239// focus. When this is enabled [FocusMsg] and [BlurMsg] messages will be sent240// to your Update method.241//240// You can then check for FocusMsg and BlurMsg in your model's Update method.242// Note that while most terminals and multiplexers support focus reporting,243// some do not. Also note that tmux needs to be configured to report focus244// events.245func WithReportFocus() ProgramOption {246 return func(p *Program) {247 p.startupOptions |= withReportFocus248 }
1 unmodified line