OSC 9 (Operating System Change Notification) ANSI escape sequence for supporting terminals (iTerm2, Ghostty, etc.)
So far only progress bar is supported.
demo.mov
group :test do
gem "osc9", github: "varyform/osc9"
endprogress = OSC::Progress.new
progress.progress(50)
progress.error(50)
progress.indeterminate
progress.resetTo use the OSC Progress reporter with Minitest, require the integration file in your test_helper.rb:
require "osc/progress/integrations/minitest" if STDOUT.isattyThis will automatically register the reporter.
To test the integration, you can run the following command:
DEMO=1 rake test