You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart.md
+16-3
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,6 @@ can also use the `.select_*` available on the object, in this case the pane has
325
325
326
326
## Sending commands to tmux panes remotely
327
327
328
-
You may send commands to panes, windows and sessions **without** them being visible.
329
328
As long as you have the object, or are iterating through a list of them, you can use `.send_keys`.
330
329
331
330
```python
@@ -334,8 +333,8 @@ As long as you have the object, or are iterating through a list of them, you can
334
333
>>> pane.send_keys('echo hey', enter=False)
335
334
```
336
335
337
-
See the other window, notice that {meth}`Pane.send_keys` has "`echo hey`" written,
338
-
_still in the prompt_. Note the leading space character so the command won't be added to the user's history. Use {}`pane.cmd('send-keys', text)` to send keys without this leading space.
336
+
See the other window, notice that {meth}`Pane.send_keys` has "`echo hey`" written,
337
+
_still in the prompt_.
339
338
340
339
`enter=False` can be used to send keys without pressing return. In this case,
341
340
you may leave it to the user to press return himself, or complete a command
@@ -345,6 +344,20 @@ using {meth}`Pane.enter()`:
345
344
>>> pane.enter()
346
345
```
347
346
347
+
### Avoid cluttering shell history
348
+
349
+
`suppress_history=True` can send commands to pane windows and sessions **without**
0 commit comments