module Tput::Output::Charset

Included Modules

Direct including types

Defined in:

tput/output/charset.cr

Instance Method Summary

Instance Method Detail

def charset=(charset : C | Nil) #

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

[View source]
def enable_acs #

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.


[View source]
def enter_alt_charset_mode #

Enter alternate (DEC TV100/ACS/SCLD) character set.

Equivalent to: self.charset= Tput::Charset::ACS


[View source]
def exit_alt_charset_mode #

[View source]
def set_g(val) #

[View source]