pane.reset() does not work
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
Research direction
Start at the pane.reset() entry point and compare the tmux command it generates with the separate p.cmd("send-keys", "-R") and p.cmd("clear-history") calls shown in the report. Reproduce the behavior with tmux 3.2, then verify that pane.reset() clears both history and scrollback as the equivalent shell commands do.
Written by the indexing model from the issue text.
Description
Hi,
First of, great tool!
I can see that pane.reset() does not work (at least for me), I am running tmux 3.2 on osx bs and zsh.
When running pane.reset(), nothing happens, meaning the history and scrollback are not cleared:
In [49]: p.reset()
self.stdout for /usr/local/bin/tmux send-keys -t %23 -R \; clear-history:
This does work for me:
Using libtmux:
In [62]: p.cmd("send-keys", "-R")
...: p.cmd("clear-history")
self.stdout for /usr/local/bin/tmux send-keys -t %23 -R:
[]
self.stdout for /usr/local/bin/tmux clear-history -t %23:
[]
Out[62]: <libtmux.common.tmux_cmd at 0x1042bed00>
Or in bash/zsh
/usr/local/bin/tmux send-keys -t %23 -R \; clear-history -t %23
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 127
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tmux-python/libtmux
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tmux-python/libtmux#759 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tmux-python/libtmux#745 · 2 comments ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tmux-python/libtmux#744 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tmux-python/libtmux#731 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tmux-python/libtmux#654 ·
All issues in tmux-python/libtmux
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·