Getting started with pmux: an unbreakable terminal in five minutes

Create a session, split the screen, detach, and come back. A short walk through the core pmux workflow.

If you have ever run a long build over SSH, lost the connection, and had to start again from scratch, that is the moment you need a terminal multiplexer. pmux is a terminal multiplexer written in Rust by PPOPPO Corp. It keeps your work alive even after the terminal closes. This post covers only the most basic workflow. The full usage is in the pmux user guide.

1. Create a session

pmux new-session work

A session named work is created and attached right away. The tab bar is at the top of the screen and the status bar is at the bottom.

2. Split the screen

Press Ctrl b, then p (pane mode), then r to split the screen to the right. To split downward, press d instead of r. Move between panes with Alt h / Alt l.

When you enter a mode, the status bar shows the keys available in that mode, so there is nothing to memorise. Press Esc at any time to leave it.

3. Detach and come back

Press Ctrl b → o → d to detach from the session. The programs inside the session keep running even if you close the terminal, because each session runs its own server process.

pmux list-sessions
pmux attach-session -t work

When you reattach, the screen is exactly as you left it.

Korean text, done right

pmux was designed from the start to display and input Korean and other Unicode text correctly. Making sure wide characters never break the screen is something pmux pays close attention to.

pmux supports Linux and macOS. A configuration file and session restore are in preparation.