Minor update of the documentation. (#148)

This commit is contained in:
Arthur Sonzogni 2021-07-12 23:22:15 +02:00 committed by GitHub
parent cd828bf94d
commit e87ff7e873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,11 +493,11 @@ resize, etc..., the `ftxui::ScreenInteractive::Loop()` is responsible for
drawing a new frame. drawing a new frame.
You might want to react to arbitrary events that are unknown to FTXUI. This can You might want to react to arbitrary events that are unknown to FTXUI. This can
be achieve by posting events via `PostEvent`, via a thread. You can post the be achieve by posting events via `ftxui::ScreenInteractive::PostEvent`, via a
event`Event::Custom`. thread. You can post the event`ftxui::Event::Custom`.
```cpp ```cpp
screen->PostEvent(ftxui::Event::Custom); screen->PostEvent(Event::Custom);
``` ```
`ftxui::ScreenInteractive::PostEvent` is thread safe. `ftxui::ScreenInteractive::PostEvent` is thread safe.