$ tmux -S /tmp/tmux/shared attach -t robolab-startup
tmux and screen are so-called terminal multiplexer that allows you to run multiple terminal sessions from inside a single terminal or SSH-session. The EV3 brick has a tmux session running in the background, so that if the SSH-connection fails the program you are running continues to be executed, instead of terminating it with the SSH-session.
For the Online-RoboLab, we use the Mothership
server as hop with a screen session holding the tmux session.
Command | Function |
---|---|
| Starts a new unnamed |
| Attach to last tmux session |
| Attach to |
| Lists all |
Command | Function |
---|---|
| Starts a new unnamed |
| Attach to last |
| Lists all |
The hotkeys (obviously) only work, when you are inside a running tmux
session.
Hotkey | Function |
---|---|
| Detach the |
| Lists all open |
| Create a new tab |
| Switch to next tab |
| Switch to previous |
| Allows you to enter scrolling mode in |
| Split current pane horizontally |
| Split current pane vertically |
| Switch between selected sub-pane |
| Zoom into currently selected sub-pane |
The hotkeys (obviously) only work, when you are inside a running screen
session.
Hotkey | Function |
---|---|
| Detach the |
| Create a new tab |
| Switch to next tab |
| Switch to previous |
The EV3 brick has a hidden tmux
session running that you are not supposed to attach to.
Attaching to this secret session will not work with the regular commands, since you should only attach to that session via the deploy.py
.
If you feel confident enough with tmux
about not breaking said secret session, you can attach to it by replacing the regular tmux
in the commands with the following:
$ tmux -S /tmp/tmux/shared attach -t robolab-startup
For further reading you can check out the following links: