Module | HighLine::SystemExtensions |
In: |
lib/highline/system_extensions.rb
|
JRUBY | = | defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' | ||
CHARACTER_MODE | = | "Win32API" | ||
STD_INPUT_HANDLE | = | -10 | win32 console APIs | |
STD_OUTPUT_HANDLE | = | -11 | ||
STD_ERROR_HANDLE | = | -12 | ||
ENABLE_PROCESSED_INPUT | = | 0x0001 | ||
ENABLE_LINE_INPUT | = | 0x0002 | ||
ENABLE_WRAP_AT_EOL_OUTPUT | = | 0x0002 | ||
ENABLE_ECHO_INPUT | = | 0x0004 | ||
ENABLE_WINDOW_INPUT | = | 0x0008 | ||
ENABLE_MOUSE_INPUT | = | 0x0010 | ||
ENABLE_INSERT_MODE | = | 0x0020 | ||
ENABLE_QUICK_EDIT_MODE | = | 0x0040 | ||
CHARACTER_MODE | = | "termios" | ||
CHARACTER_MODE | = | "ncurses" | work correctly in JRuby manually installing the ffi-ncurses gem is the only way to get highline to operate correctly in JRuby. The ncurses library is only present on unix platforms so this is not a solution for using highline in JRuby on windows. | |
CHARACTER_MODE | = | "stty" |
Switched the input mode to raw and disables echo.
WARNING: This method requires the external "stty" program!