Back to Superfile

Overview

testsuite/docs/tmux.md

1.5.01.4 KB
Original Source

Overview

This is to document the behviour of tmux, and how could we use it in testsuite

Tmux concepts and working info

  • Tmux creates a main server process, and one new process for each session.

  • -s and -n for window naming.

  • We have prefix keys to send commands to tmux.

Sample usage with spf

Sending keys to termux and controlling from outside.

Knowledge sharing

  • tmux new 'spf' - Run spf in tmux
  • tmux attach -t <session_name> attach to an existing session. You can have two windows duplicating same behaviour.
  • tmux kill-session -t <session_name> kill session
  • Ctrl+B+: - Enter commands
  • Ctrl+B+D - Detach from session
  • :source ~/.tmux.conf - Change the config of running server
  • We have already a wrapper library for termux in python !!!!!
  • How to send key press/tmux commands to the process ?

References