A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
use anyhow::Context;
use std::collections::HashMap;
/// Parses:
/// $ xprop -root | grep RESOURCE_MANAGER
/// RESOURCE_MANAGER(STRING) = "Xft.dpi:\t96\nXft.hinting:\t1\nXft.hintstyle:\thintslight\nXft.antialias:\t1\nXft.rgba:\tnone\nXcursor.size:\t24\nXcursor.theme:\tAdwaita\n"
pub fn parse_root_resource_manager(
conn: &xcb::Connection,
root: xcb::x::Window,
) -> anyhow::Result<HashMap<String, String>> {
let reply = conn
.wait_for_reply(conn.send_request(&xcb::x::GetProperty {
delete: false,
window: root,
property: xcb::x::ATOM_RESOURCE_MANAGER,
r#type: xcb::x::ATOM_STRING,
long_offset: 0,
long_length: 1024 * 1024,
}))
.context("GetProperty ATOM_RESOURCE_MANAGER")?;
let text = String::from_utf8_lossy(reply.value::<u8>());
let mut map = HashMap::new();
for line in text.split('\n') {
if let Some(colon) = line.find(':') {
let (key, value) = line.split_at(colon);
let key = key.trim();
let value = value[1..].trim();
map.insert(key.to_string(), value.to_string());
}
}
Ok(map)
}