• historicaldocuments
    link
    fedilink
    arrow-up
    2
    ·
    24 days ago

    Scrolling with a mouse works, just not exactly the way I thought it would when I started using it.

    I started out with a shell script using send-keys, and eventually decided the python tmux library was a nice improvement.

    • rbos@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      24 days ago

      Nice. I wrap send-keys with a little perl script, I should look into that Python lib.

      • historicaldocuments
        link
        fedilink
        arrow-up
        2
        ·
        24 days ago

        It’s not bad at all. It gets monumentally easier if you’ve named all your sessions and windows because it’s just a .get() to look them up. Panes still have that thing where the panes can get renumbered inside a window, but still have the same internal immutable identifier underneath the hood, but you wind up with pane.send_keys(my_string, enter=True) which is well worth the learning curve IMO.

        • rbos@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          24 days ago

          Totally. And you can start a new panel from a script with a specific name as well.

          I use it for managing minecraft servers.