Skip to main content

gritty/
lib.rs

1pub mod client;
2pub mod connect;
3pub mod daemon;
4pub mod protocol;
5pub mod security;
6pub mod server;
7
8/// Collect TERM/LANG/COLORTERM from the environment for forwarding to remote sessions.
9pub fn collect_env_vars() -> Vec<(String, String)> {
10    ["TERM", "LANG", "COLORTERM"]
11        .iter()
12        .filter_map(|k| std::env::var(k).ok().map(|v| (k.to_string(), v)))
13        .collect()
14}