tmux

Version, currently main branch1 version
  • main branchlatestOct 31, 2026

github.com/ch1c0t/crystal.tmux

No description declared in shard.yml.

0 stars
1 dependent
License: not declared

Installation

# Add this to your shard.yml
dependencies:
  tmux:
    github: ch1c0t/crystal.tmux
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.20.3
Author
Anatoly Chernov
Target
  • crystal.tmux from src/bin/crystal.tmux.cr

Dependencies

This version declares no dependencies.

README

Crystal Tmux API

The shard also exposes a top-level Tmux module with an object model inspired by libtmux:

require "tmux"

server = Tmux::Server.new
session = server.new_session("demo", detached: true)
window = session.active_window
pane = window.active_pane

pane.send_keys("echo hello")
sleep 0.1
puts pane.capture_pane.join("\n")

The core API covers server, session, window, and pane traversal; creating sessions and windows; splitting panes; sending keys; capturing pane output; self-location through tmux environment variables; and raw command execution.

Development

shards install
bundle exec rake
crystal spec

The API end-to-end spec starts a separate Tmux server using a unique socket.