Skip to content

varyform/osc9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osc9

OSC 9 (Operating System Change Notification) ANSI escape sequence for supporting terminals (iTerm2, Ghostty, etc.)

So far only progress bar is supported.

demo.mov

Installation

group :test do
  gem "osc9", github: "varyform/osc9"
end

Usage

OSC Progress

progress = OSC::Progress.new
progress.progress(50)
progress.error(50)
progress.indeterminate
progress.reset

Minitest Integration

To use the OSC Progress reporter with Minitest, require the integration file in your test_helper.rb:

require "osc/progress/integrations/minitest" if STDOUT.isatty

This will automatically register the reporter.

To test the integration, you can run the following command:

DEMO=1 rake test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors