mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-22 22:02:46 +03:00
aff56a65a4e49d07ca00636fc33cb2141409f6b3
The main thing preventing this system being event driven in the past was
input from the keyboard had to be polled separately from pty activity.
This commit adds a thread for the window event iterator and sends them
on the same channel as pty characters.
With that in place, the render loop looks like
- Block on 1 available input
- Get all remaining available input that won't cause blocking
- Render
Which means that rendering is only performed on state changes. This
obsoleted the need for a `dirty` flag in the Term struct.
Languages
Rust
95.8%
Shell
3%
GLSL
0.9%
Makefile
0.3%