Skip to content

Display images within the terminal using the ITerm2 Inline Images Protocol.

License

Notifications You must be signed in to change notification settings

toddsundsted/iterm2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iterm2

GitHub Release Build Status Documentation

Displays images within the terminal using the ITerm2 Inline Images Protocol.

Requires ITerm2.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  iterm2:
    github: toddsundsted/iterm2
  1. Run shards install

Usage

require "iterm2"

File.open("unicorn.png") do |file|
  Iterm2.new.display(file)
end

The #display method also accepts a block and yields an instance of IO that may be written to. See the documentation for the full API.

Contributors

About

Display images within the terminal using the ITerm2 Inline Images Protocol.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published