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