class RatatuiRuby::Event::FocusGained

Signals that the application is now active.

The user interacts with many windows. Your application needs to know when it has their attention.

This event confirms visibility. It fires when the terminal window moves to the foreground.

Use it to resume paused activities. Restart animations. Refresh data. The user is watching.

Only supported by some terminals (e.g. iTerm2, Kitty, newer xterm).

Example

if event.focus_gained?
  puts "Focus gained"
end