class Tput::Features
- Tput::Features
- Reference
- Object
Overview
Terminal features auto-detection.
Involved in a terminal are the terminal emulator in use (Tput::Emulator
) and
the term type initialized/running in it (ENV["TERM"]
usually).
After those two variables are known, the features autodetection is ran to figure out the final details of terminal's behavior.
Included Modules
- Crystallabs::Helpers::Boolean
- Crystallabs::Helpers::Logging
- JSON::Serializable
Defined in:
tput/features.crConstant Summary
-
Log =
::Log.for((self.name.gsub("::", '.')).underscore)
Constructors
Instance Method Summary
- #acsc : ACSHash
- #acscr : ACSHash
-
#broken_acs? : Bool
Does the terminal have broken ACS chars?
-
#color? : Bool
Color support flag (a yes/no)
-
#detect_broken_acs
Detects whether terminal has broken ACS characters
- #detect_magic_cookie
-
#detect_number_of_colors
Detects number of colors supported by the terminal (2 - 16M)
- #detect_padding
-
#detect_pc_rom_charset
Detects whether terminal supports PC ROM charset
- #detect_setbuf
-
#detect_unicode
Detects Unicode support
-
#get_console_cp
Gets console codepage (Windows-specific)
- #inspect(io)
- #magic_cookie? : Bool
-
#number_of_colors : Int32
Number of colors supported by the terminal
- #padding? : Bool
-
#parse_acs
Parses terminal's ACS characters and returns ASCII->ACS and ACS->ASCII mappings.
-
#pc_rom_charset? : Bool
Does the terminal support PC ROM charset?
- #setbuf? : Bool
-
#unicode? : Bool
Is unicode supported?