Coder Social home page Coder Social logo

Comments (5)

tony avatar tony commented on August 28, 2024 1

I'm considering making enter=False and suppress_history=False by default.

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)

from libtmux.

tony avatar tony commented on August 28, 2024

Would C-key work?

For Ctrl-a, do C-a or ^-a

from libtmux.

RPiAwesomeness avatar RPiAwesomeness commented on August 28, 2024

@tony Unfortunately I already tried that and it just gives an error, both in zsh and and in bash:
selection_004

from libtmux.

RPiAwesomeness avatar RPiAwesomeness commented on August 28, 2024

@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!

from libtmux.

stale avatar stale commented on August 28, 2024

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

This bot is used to handle issues where the issue hasn't been discussed or
has gone out of date. If an issue isn't resolved and handled in a certain
period of time, it may be closed. If you would like your issue re-opened,
please create a fresh issue with the latest, up to date information and
mention this issue in it.

from libtmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.