Module: HighLine::SystemExtensions

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

### Methods

get_character get_character get_character raw_no_echo_mode restore_mode terminal_size terminal_size

### Constants

CHARACTER_MODE | = | "Win32API"
CHARACTER_MODE | = | "termios"
CHARACTER_MODE | = | "stty"

### Public Instance methods

get_character( input = STDIN )

Windows savvy getc().

WARNING: This method ignores `input` and reads one character from `STDIN`!

get_character( input = STDIN )

Unix savvy getc(). (First choice.)

WARNING: This method requires the "termios" library!

get_character( input = STDIN )

Unix savvy getc(). (Second choice.)

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

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]