aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-09 08:06:47 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-09 08:06:47 -0700
commitaff56a65a4e49d07ca00636fc33cb2141409f6b3 (patch)
treeb0bd87d5e100b494e8cababed28cedf9a9528492 /src/macros.rs
parent8b1e82f31a7ecaade440b0694c0bbe5a843b48ac (diff)
downloadr-alacritty-aff56a65a4e49d07ca00636fc33cb2141409f6b3.tar.gz
r-alacritty-aff56a65a4e49d07ca00636fc33cb2141409f6b3.tar.bz2
r-alacritty-aff56a65a4e49d07ca00636fc33cb2141409f6b3.zip
Make state updates and rendering event driven
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.
Diffstat (limited to 'src/macros.rs')
0 files changed, 0 insertions, 0 deletions