ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
58 stars 8 forks source link

Add method to Screen widget to indicate terminal focus #115

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

It would be nice, in terminals that support focus gained/lost events, to be able to indicate to the Screen widget whether the terminal window is truly focused. This should default to true so that windows still look right if the method isn't called or if we don't ever get a focus gained event.