aboutsummaryrefslogtreecommitdiff
path: root/src/tty.rs
diff options
context:
space:
mode:
authorAnders Rasmussen <divinegod@gmail.com>2017-02-14 13:22:59 +1100
committerJoe Wilm <jwilm@users.noreply.github.com>2017-02-14 08:53:18 -0800
commitc49d4a936553135f6326e91e62445a5e04186a80 (patch)
tree8cd0d6b595e23f543c36c8a5f85de99478796fe8 /src/tty.rs
parent24c32dc4004d1c67fe95f418b7737ec393898208 (diff)
downloadalacritty-c49d4a936553135f6326e91e62445a5e04186a80.tar.gz
alacritty-c49d4a936553135f6326e91e62445a5e04186a80.zip
Add TERM config entry
Diffstat (limited to 'src/tty.rs')
-rw-r--r--src/tty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tty.rs b/src/tty.rs
index ca5fad78..39d3deea 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -207,7 +207,10 @@ pub fn new<T: ToWinsize>(config: &Config, options: &Options, size: T) -> Pty {
builder.env("USER", pw.name);
builder.env("SHELL", shell.program());
builder.env("HOME", pw.dir);
- builder.env("TERM", "xterm-256color"); // sigh
+ builder.env("TERM", "xterm-256color"); // default term until we can supply our own
+ for (key, value) in config.env().iter() {
+ builder.env(key, value);
+ }
builder.before_exec(move || {
// Create a new process group