Skip to content

Commit d9489f2

Browse files
committed
docs(README): restore inline quickstart comments
1 parent 36aac1a commit d9489f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ Create and drive a tmux session entirely from Python.
8585
import libtmux
8686
import time
8787

88+
# Connect to tmux (starts one if not running)
8889
server = libtmux.Server()
90+
# Unique name avoids collisions on repeated runs
8991
session_name = f"libtmux-demo-{int(time.time())}"
9092
session = server.new_session(session_name=session_name, window_name="workspace")
9193

9294
window = session.active_window
9395
left = window.active_pane
9496
right = window.split_window(vertical=True)
9597

98+
# Send commands to panes
9699
left.send_keys("vim", enter=True)
97100
right.send_keys("htop", enter=True)
98101

0 commit comments

Comments
 (0)