module
Tput::Output::Charset
Included Modules
- Crystallabs::Helpers::Alias_Methods
Direct including types
Defined in:
tput/output/charset.crInstance Method Summary
-
#charset=(charset : C | Nil)
Activate a different charset.
-
#enable_acs
Enable the alternate character set, for terminals that require an explicit enable before
smacs/rmacsline-drawing works (terminfoena_acs). -
#enter_alt_charset_mode
Enter alternate (DEC TV100/ACS/SCLD) character set.
- #exit_alt_charset_mode
- #set_g(val)
Instance Method Detail
Activate a different charset.
Empty value resets to terminal default.
ESC (,),*,+,-,. Designate G0-G2 Character Set.
See also:
acs_chars / acsc / ac
enter_alt_charset_mode / smacs / as
exit_alt_charset_mode / rmacs / ae
enter_pc_charset_mode / smpch / S2
exit_pc_charset_mode / rmpch / S3
Enable the alternate character set, for terminals that require an
explicit enable before smacs/rmacs line-drawing works (terminfo
ena_acs).
No hardcoded fallback: like ncurses, this emits the sequence only when
the terminal declares the capability. Terminals that switch charset
directly (xterm and friends, see #enter_alt_charset_mode) don't define
it, so this is a no-op there.
Enter alternate (DEC TV100/ACS/SCLD) character set.
Equivalent to: self.charset= Tput::Charset::ACS