Think of T-Strip as two pieces that work together:
Because the server is separate, you can close your terminal, drop your SSH connection, or reboot your computer, and your panes keep running. Come back later and reattach β nothing is lost.
πΈ Screenshot coming here: Diagram showing client and server connected by a unix socket. π¬ Video coming here: Detach, close terminal, reattach later β your work is still there.
You type in a terminal (client)
β keystrokes
βββββββββββββββββββββββ
β T-Strip server β β owns panes, PTYs, scrollback
β (runs in background)β
βββββββββββββββββββββββ
β frames to draw
You see output in your terminal (client)
| Command | What it does |
|---|---|
tst |
Attach to session βmainβ (create it if needed) |
tst -s work |
Attach to session βworkβ |
tst new work |
Create session βworkβ and attach (error if it exists) |
tst attach work |
Attach to an existing session |
tst ls |
List all live sessions (panes, attached/detached) |
tst kill work |
End a session and every program in it |
tst local |
Run without a background session (closes when the terminal closes) |
πΈ Screenshot coming here: Output of
tst lsshowing one attached and one detached session. π¬ Video coming here: Creating, listing, and killing sessions.
Inside T-Strip, press alt+d to detach. The server keeps running and your panes keep producing output. Close your terminal or drop SSH β it does not matter.
Come back later:
tst # attach to "main"
tst -s work # attach to "work"
tst attach work
When you reattach, everything is re-laid out for your new terminal size, and the scrollback that filled while you were away is all still there.
Only one client can be attached to a session at a time. If you attach from a second terminal, the first client is told to leave and exits with a notice. This is handy for moving between machines.
Once a session is running, any shell or script can drive it. The program always goes in double quotes, as one argument:
tst open "htop" -n 3 -w 0.33 -s test # htop, workspace 3, 33% wide, session "test"
tst open "tail -f /var/log/syslog" --below
tst open "make watch" -k # -k: keep keyboard focus where it is
tst open # no program: a new shell
tst workspace 3 # switch the view
tst focus left # left | right | up | down
tst width 50% # resize the focused column
tst send -e "make test" # type into a pane (-e presses Enter)
tst close # close the focused pane
tst list # list panes (id, workspace, column, width, program)
tst action overview # run any action by name
tst action goto_workspace 2
Flags may go before or after the program. -s NAME picks the session; otherwise it defaults to the session you are inside (every pane has TST_SESSION and TST_PANE set), else main.
Inside tst local there is no session, so name one with -s.
open starts the program in the directory you ran the command from (-d DIR to choose another).
πΈ Screenshot coming here: Terminal running
tst open "htop"andtst list. π¬ Video coming here: Controlling a running session from another terminal window.
Everything lives under $XDG_RUNTIME_DIR/tst-<uid>/ (or the temp folder), mode 0700:
| File | Purpose |
|---|---|
NAME.sock |
The unix socket clients connect to |
NAME.log |
The serverβs output, useful for crash reports |
Session names may contain letters, digits, ., _, - (up to 48 characters).
πΈ Screenshot coming here: The session socket and log files on disk. π¬ Video coming here: Finding the logs when something goes wrong.
leader+Q inside the session β ends it; attached clients get βsession endedβ.tst kill NAME β from any terminal.leader+d / alt+d only detaches; the session keeps running and can be re-attached later.There is no saved session state on disk. A session exists only while its server is running. If the machine restarts, sessions are gone β like tmux without plugins.
π¬ Video coming here: The difference between detach and kill.