Sha256: 5936941667dc03a9f737db7122d33fd878454f8d5c2ba3fc1d62f2aac3370477
Contents?: true
Size: 638 Bytes
Versions: 4
Compression:
Stored size: 638 Bytes
Contents
platform = RUBY_PLATFORM.sub(/i[3-7]86/, "x86") pdcurses_path = File.expand_path("../vendor/#{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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
curses-1.2.5 | lib/curses.rb |
curses-1.2.4-x86-mingw32 | lib/curses.rb |
curses-1.2.4-x64-mingw32 | lib/curses.rb |
curses-1.2.4 | lib/curses.rb |