crystal.tmux
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.
Repository
crystal.tmux
Owner
Statistic
- 0
- 0
- 0
- 1
- 0
- about 2 hours ago
- October 31, 2026
License
Links
Synced at
Sat, 31 Oct 2026 18:51:44 GMT
Languages