diff options
Diffstat (limited to 'lib/highline/terminal.rb')
-rwxr-xr-x | lib/highline/terminal.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/highline/terminal.rb b/lib/highline/terminal.rb index ac06b3b..a76a136 100755 --- a/lib/highline/terminal.rb +++ b/lib/highline/terminal.rb @@ -172,6 +172,12 @@ class HighLine # @!endgroup + # Returns the class name as String. Useful for debuggin. + # @return [String] class name. Ex: "HighLine::Terminal::IOConsole" + def character_mode + self.class.name + end + private # Yield a block using stty shell commands to preserve the terminal state. |