-
Notifications
You must be signed in to change notification settings - Fork 109
Send modifier keys to the attached pane via .send_keys() #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Would For Ctrl-a, do |
@tony Unfortunately I already tried that and it just gives an error, both in zsh and and in bash: |
I'm considering making Give this a shot, it worked for me: pane.libtmux.Server().sessions[0].attached_window.panes[0]. Quick snippet: libtmux.Server().sessions[0].attached_window.panes[0].send_keys('C-c', enter=False, suppress_history=False) |
@tony Sorry for not responding soon, I was gone and didn't take any machines with me. I had to tweak your snippets to work, but running libtmux.Server().sessions[0].attached_window.panes[0].send_keys('C-c', enter=False, suppress_history=False) did work, it did seem to send Ctrl-C! |
This issue has been automatically marked as stale because it has not had This bot is used to handle issues where the issue hasn't been discussed or |
I really like the look of this project. However, for something that I need to do, I need to be able to send a modifier key, Ctrl to be exact.
I've tried a few different things and I'll continue looking around for a solution, but I figured I would post an issue here in case this is not currently possible.
The text was updated successfully, but these errors were encountered: