1. Home
  2. Changelog

Jan 26, 2025

Replacing Tmux with Tailscale and LibGhostty

Mitchell Hashimoto

3 min → 0:48

Overview

Mitchell Hashimoto explains why terminal multiplexers degrade the user experience and shares his vision for replacing them with modern networking tools and a foundational cross-platform library.

3 things to know

Changelog says running terminals inside terminals can lose features

Changelog explains that a multiplexer is a terminal rendering its interface as text inside another graphical terminal, creating layers of interpretation that can lead to feature loss and incompatibility.

More

A multiplexer is a terminal that renders its UI as text within another graphical terminal, creating layers of interpretation that can lead to feature loss and incompatibility.

▶ Watch at 0:30

Changelog proposes remote host instances to replace terminal multiplexers

Changelog outlines a proposed alternative to multiplexers that runs a remote host instance of a terminal users connect to from anywhere, natively preserving sessions, windows, and splits without nested terminal compatibility issues.

More

This preserves sessions, windows, and splits natively without the compatibility issues of a nested terminal.

Changelog says multiplexers discard unsupported modern terminal graphics protocols

Changelog points out that advanced modern terminal features like graphics protocols are lost when running through a multiplexer that does not support them, because the multiplexer simply discards unsupported protocols.

Also in this episode

Changelog: Tmux and Zellij introduce technical drawbacks for sessions

The Changelog discussion analyzes the utility of session management tools like TMUX and Zellij against the technical drawbacks those tools introduce.

▶ Watch at 2:00

Quotes

“a terminal multiplexer is itself a full fledged terminal where its UI is just text that's going to another graphical terminal... you're running multiple levels of terminals.”

▶ Watch at 0:30

“I think that philosophically, I would love to see them disappear.”

▶ Watch at 2:00

Full summary

Episode Overview

  • The speaker discusses the inherent limitations of terminal multiplexers like TMUX, arguing they degrade the user experience.
  • He explains that a multiplexer acts as a "terminal within a terminal," which can strip away advanced features supported by the host terminal application.
  • A vision for replacing multiplexers is presented, using modern networking tools like Tailscale to achieve native, persistent remote sessions.
  • The ultimate goal is to create a foundational, cross-platform library (LibGhostty) that simplifies the creation of advanced terminal applications.

Key Concepts

  • Terminal Multiplexers: The discussion focuses on tools like TMUX and Zellij, analyzing their utility for session management against the technical drawbacks they introduce.
  • "Terminal within a Terminal" Problem: This is the core issue identified. A multiplexer is a terminal that renders its UI as text within another graphical terminal, creating layers of interpretation that can lead to feature loss and incompatibility.
  • Feature Degradation: Advanced features of a modern terminal (e.g., graphics protocols) are lost when running through a multiplexer that doesn't support them, as the multiplexer simply discards the unsupported protocols.
  • Native Session Persistence: The proposed alternative to multiplexers, which involves running a remote "host instance" of a terminal that users can connect to from anywhere. This preserves sessions, windows, and splits natively without the compatibility issues of a nested terminal.

Quotes

  • At 00:30 - "a terminal multiplexer is itself a full fledged terminal where its UI is just text that's going to another graphical terminal... you're running multiple levels of terminals." - The speaker explains the fundamental architecture of multiplexers and the core reason they create compatibility problems.
  • At 02:00 - "I think that philosophically, I would love to see them disappear." - The speaker clarifies his stance, stating that while he respects the creators, his goal is for tools like TMUX to be rendered obsolete by better, more integrated solutions.

Takeaways

  • Terminal multiplexers solve the problem of session persistence at the cost of creating a restrictive intermediary layer that can limit functionality.
  • The "terminal within a terminal" architecture is a key source of issues, preventing advanced features from the host terminal from working correctly.
  • A more modern approach to session persistence involves integrating it with the terminal emulator itself, using networking tools to create seamless remote connections.
  • The future of terminal innovation may depend on creating shared, foundational libraries that handle complex protocols, allowing developers to focus on building better user interfaces and features.
  • While useful today, the ideal future is one where the functionality of multiplexers is built-in natively, making the separate tool unnecessary.

Watch the full episode 3 min

Read along with the audio summary

The speaker argues that terminal multiplexers, which are tools for managing sessions like TMUX, actually degrade the user experience. You will learn why they cause compatibility issues and how native session persistence could replace them.

Session management tools come with hidden technical drawbacks.

This happens because of the terminal within a terminal problem. The speaker explains that a multiplexer is a full fledged terminal that renders its user interface as text inside another graphical terminal, creating layers of interpretation and incompatibility.

Those extra layers cause feature degradation. Advanced features of a modern terminal, such as graphics protocols, are lost because an unsupported multiplexer simply discards them.

Native session persistence offers a clean alternative. By using networking tools like Tailscale to connect to a remote host instance of a terminal, users can preserve sessions, windows, and splits natively.

The ideal future is building this functionality natively into the terminal emulator itself, using shared foundational libraries like LibGhostty. "I think that philosophically, I would love to see them disappear."

More from Changelog

Related Episodes