Sha256: 0540308e511243942ac27b0e0e171fa8eb623b16fa4b41d63d92d65d61df7f9a

Contents?: true

Size: 595 Bytes

Versions: 24

Compression:

Stored size: 595 Bytes

Contents

pdcurses_path = File.expand_path("../vendor/#{RUBY_PLATFORM}/PDCurses", __dir__)
pdcurses_bundled = File.directory?(pdcurses_path)
if pdcurses_bundled
  path = ENV["PATH"]
  dir = File::ALT_SEPARATOR ?
    pdcurses_path.tr("/", File::ALT_SEPARATOR) : dir
  dirs = path.split(File::PATH_SEPARATOR)
  if !dirs.include?(dir)
    ENV["PATH"] = [dir, *dirs].join(File::PATH_SEPARATOR)
  end
end

begin
  major, minor, _ = RUBY_VERSION.split(/\./)
  require "#{major}.#{minor}/curses.so"
rescue LoadError
  require "curses.so"
end

if pdcurses_bundled
  Curses.keyboard_encoding = Encoding::UTF_8
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
curses-1.2.3-x64-mingw32 lib/curses.rb
curses-1.2.3-x86-mingw32 lib/curses.rb
curses-1.2.3 lib/curses.rb
curses-1.2.2-x86-mingw32 lib/curses.rb
curses-1.2.2-x64-mingw32 lib/curses.rb
curses-1.2.2 lib/curses.rb
curses-1.2.1-x86-mingw32 lib/curses.rb
curses-1.2.1-x64-mingw32 lib/curses.rb
curses-1.2.1 lib/curses.rb
curses-1.2.0-x64-mingw32 lib/curses.rb
curses-1.2.0-x86-mingw32 lib/curses.rb
curses-1.2.0 lib/curses.rb
curses-1.1.3-x64-mingw32 lib/curses.rb
curses-1.1.3-x86-mingw32 lib/curses.rb
curses-1.1.3 lib/curses.rb
curses-1.1.2-x64-mingw32 lib/curses.rb
curses-1.1.2-x86-mingw32 lib/curses.rb
curses-1.1.2 lib/curses.rb
curses-1.1.1-x64-mingw32 lib/curses.rb
curses-1.1.1-x86-mingw32 lib/curses.rb