summaryrefslogtreecommitdiffstats
path: root/src/tty/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty/mod.rs')
-rw-r--r--src/tty/mod.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tty/mod.rs b/src/tty/mod.rs
index ea2dd0c4..ec175ee6 100644
--- a/src/tty/mod.rs
+++ b/src/tty/mod.rs
@@ -57,7 +57,7 @@ pub trait EventedReadWrite {
#[derive(PartialEq)]
pub enum ChildEvent {
/// Indicates the child has exited
- Exited
+ Exited,
}
/// A pseudoterminal (or PTY)
@@ -65,7 +65,7 @@ pub enum ChildEvent {
/// This is a refinement of EventedReadWrite that also provides a channel through which we can be
/// notified if the PTY child process does something we care about (other than writing to the TTY).
/// In particular, this allows for race-free child exit notification on UNIX (cf. `SIGCHLD`).
-pub trait EventedPty : EventedReadWrite {
+pub trait EventedPty: EventedReadWrite {
#[cfg(unix)]
fn child_event_token(&self) -> mio::Token;
@@ -83,11 +83,7 @@ pub fn setup_env(config: &Config) {
// below.
env::set_var(
"TERM",
- if Database::from_name("alacritty").is_ok() {
- "alacritty"
- } else {
- "xterm-256color"
- },
+ if Database::from_name("alacritty").is_ok() { "alacritty" } else { "xterm-256color" },
);
// Advertise 24-bit color support