···1919pty run myserver -- node server.js # start a session and attach
2020pty run -d myserver -- node server.js # start in the background
21212222+pty # no args runs list
2223pty list # show active sessions
2424+2325pty attach myserver # reconnect
2426pty peek myserver # print current screen and exit
2527pty peek -f myserver # follow output read-only
···4143brew install bash-completion # required for bash; zsh works out of the box
4244npm run install-completions
4345```
4646+4747+## Prior Art
4848+4949+pty focuses on session persistence only — no splits, no panes, no window management. On mobile we don't need or want splits, and on desktop we have kitty/ghostty/native terminal splits. Keep things simple.
5050+5151+- [abduco](https://github.com/martanne/abduco) — minimal session management for terminal programs, handling detach and reattach cleanly. A major inspiration for pty.
5252+- [dtach](https://github.com/crigler/dtach) — emulates the detach feature of screen with minimal overhead.
5353+- [GNU Screen](https://www.gnu.org/software/screen/) — the original terminal multiplexer that pioneered session persistence.
5454+- [tmux](https://github.com/tmux/tmux) — modern terminal multiplexer with session, window, and pane management.
44554556## License
4657