summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/event_loop.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-07-10 22:32:44 +0300
committerGitHub <noreply@github.com>2020-07-10 22:32:44 +0300
commit8bd2c13490f8cb6ad6b0c1104f9586b3554efea2 (patch)
tree6909d3be00c72c3c5acdd173aa7f411a1bc6b445 /alacritty_terminal/src/event_loop.rs
parentb78f3d133960dad38ad21e808723e51661b59881 (diff)
downloadalacritty-8bd2c13490f8cb6ad6b0c1104f9586b3554efea2.tar.gz
alacritty-8bd2c13490f8cb6ad6b0c1104f9586b3554efea2.zip
Add option to run command on bell
Fixes #1528.
Diffstat (limited to 'alacritty_terminal/src/event_loop.rs')
-rw-r--r--alacritty_terminal/src/event_loop.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs
index 46216605..156510b0 100644
--- a/alacritty_terminal/src/event_loop.rs
+++ b/alacritty_terminal/src/event_loop.rs
@@ -6,6 +6,7 @@ use std::fs::File;
use std::io::{self, ErrorKind, Read, Write};
use std::marker::Send;
use std::sync::Arc;
+use std::thread::JoinHandle;
use log::error;
#[cfg(not(windows))]
@@ -18,8 +19,8 @@ use crate::config::Config;
use crate::event::{self, Event, EventListener};
use crate::sync::FairMutex;
use crate::term::{SizeInfo, Term};
+use crate::thread;
use crate::tty;
-use crate::util::thread;
/// Max bytes to read from the PTY.
const MAX_READ: usize = 0x10_000;
@@ -300,7 +301,7 @@ where
Ok(())
}
- pub fn spawn(mut self) -> thread::JoinHandle<(Self, State)> {
+ pub fn spawn(mut self) -> JoinHandle<(Self, State)> {
thread::spawn_named("PTY reader", move || {
let mut state = State::default();
let mut buf = [0u8; MAX_READ];