Thor
thor-osc7501 reports Thor command and prompt activity to a terminal supporting OSC 7501.
Add the gem to your Gemfile and install it:
gem 'thor-osc7501', require: false
bundle install
Load the reporter in your Thorfile before running a command:
require 'thor/osc7501'
For example, run bundle exec thor deploy if your project defines a deploy command. A Ruby executable can require the same entrypoint before starting its CLI class. Installing the gem alone does not activate it.
The reporter uses one root record per outer run. For ask, yes?, and no? prompts, it reports blocked with kind=question and the question without the answer. Direct method calls that bypass Thor dispatch and custom shells that override ask are outside its guaranteed coverage.
# Output
THOR_OSC7501=auto is the default: report to stdout when it is a TTY and TERM is not dumb. Set it to force to report even when redirected or off to disable reporting. Other values raise ArgumentError.
Version 0.1.0 targets MRI Ruby 2.1 or newer and Thor 0.19.4 or newer. Other Ruby engines are unverified. See the released gem for package details.
# Project links
Release and Apache-2.0 license information. The source and issue links in the gem metadata were not publicly accessible when checked on 2026-11-13.