Terminal, files, desktop
Terminal
tmux sessions on your computer, opened from the phone, that keep running when it locks or loses signal.
Every terminal in Link is a tmux session on your computer. Closing the app, locking the phone or walking out of Wi-Fi range doesn't stop what's running: the session stays on the computer, and Link attaches to it again when you come back.
Requirements
tmux on the computer. If it's missing, the Terminal tab says so and offers Open a plain shell, which works but ends when the connection does. Install tmux with your package manager (sudo apt install tmux, sudo pacman -S tmux, brew install tmux).
Using it
- The tab lists the computer's tmux sessions, including ones you started at your desk. Open one, or start a new one. Rename and close them from the list.
- Sessions opened by Link hide tmux's status bar (the app's header names the session) and turn on mouse mode, so a drag scrolls tmux's history. Both settings apply to that session only, never to your
tmux.conf. - The toolbar above the keyboard has the keys a phone keyboard lacks: arrows, Ctrl C, Esc and Tab, plus a button that brings the keyboard back.
- On a slow connection, letters you type appear at once, underlined, before the computer echoes them, the way mosh does it. A wrong guess is never written to the screen.
- When the connection drops, the terminal reattaches by itself; nothing on the computer is lost.
The terminal is drawn by ghostty-web, Ghostty's terminal core compiled to WebAssembly, inside the app.