Socket
Book a DemoInstallSign in
Socket

paned_repl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paned_repl

0.1.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Installation

To launch a REPL (using Pry), first do this in Bash:

gem install paned_repl
paned_repl init
sh paned_repl.sh

Usage

inside the REPL, require whatever programs you need.

There is a Ruby wrapper over TMux commands. For example:

# the 'main pane' receives tmux commands
# this refers to a root Tmux session that is automatically created.
# launching subsequent Tmux sessions is not implemented
session = PanelRepl.sessions.values.first

# create a new pane, but maintain focus on main frame.
# swaps positions so the main pane is always last
session.split_horizontal

# make the panes equal size
session.even_horizontal

new_pane_id = 0 # There are 2 total panes, and the main pane is always the last
                # Therefore (with 0-indexing) the new pane has an id of 0.
                # If a third pane were added, it would have an id of 1 and the main
                # pane would have an id of 2.

session.send_keys "echo hello", new_pane_id

There is intended to be one pane that handles direct user input. The other panes just receive commands through send_keys.

See ./lib/paned_repl/tmux.rb for more commands that can be used.

FAQs

Package last updated on 05 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.