Module: HighLine::SystemExtensions

Module | HighLine::SystemExtensions
In: | lib/highline/system_extensions.rb

### Methods

GetConsoleMode GetConsoleScreenBufferInfo GetStdHandle SetConsoleEcho SetConsoleMode get_character get_character get_character raw_no_echo_mode restore_mode terminal_size terminal_size

### Constants

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 | = | "stty"

### Public Instance methods

GetConsoleMode( console_handle )
GetConsoleScreenBufferInfo( console_handle )
GetStdHandle( handle_type )
SetConsoleEcho( console_handle, on )

windows savvy console echo toggler

SetConsoleMode( console_handle, mode )
get_character( input = STDIN )

Windows savvy getc().

get_character( input = STDIN )

Unix savvy getc(). (Second choice.)

WARNING: This method requires the external "stty" program!

get_character( input = STDIN )

Unix savvy getc(). (First choice.)

WARNING: This method requires the "termios" library!

raw_no_echo_mode()

Switched the input mode to raw and disables echo.

WARNING: This method requires the external "stty" program!

restore_mode()

Restores a previously saved input mode.

WARNING: This method requires the external "stty" program!

terminal_size()

A Windows savvy method to fetch the console columns, and rows.

terminal_size()

A Unix savvy method to fetch the console columns, and rows.

[Validate]