module Tput::Output::Misc

Included Modules

Direct including types

Defined in:

tput/output/misc.cr

Instance Method Summary

Instance Method Detail

def escape #

Inserts escape (ESC), indicating start of a new sequence.

It cancels the stream of any other sequences.

Aliases: esc


[View source]
def load_leds(param = 0) #

CSI Ps q Load LEDs (DECLL). Ps = 0 -> Clear all LEDS (default). Ps = 1 -> Light Num Lock. Ps = 2 -> Light Caps Lock. Ps = 3 -> Light Scroll Lock. Ps = 2 1 -> Extinguish Num Lock. Ps = 2 2 -> Extinguish Caps Lock. Ps = 2 3 -> Extinguish Scroll Lock.


[View source]
def mc0 #

[View source]
def mc4 #

[View source]
def mc5 #

[View source]
def mc5p #

[View source]
def media_copy(*arguments) #

CSI Pm i Media Copy (MC). Ps = 0 -> Print screen (default). Ps = 4 -> Turn off printer controller mode. Ps = 5 -> Turn on printer controller mode. CSI ? Pm i Media Copy (MC, DEC-specific). Ps = 1 -> Print line containing cursor. Ps = 4 -> Turn off autoprint mode. Ps = 5 -> Turn on autoprint mode. Ps = 1 0 -> Print composed display, ignores DECPEX. Ps = 1 1 -> Print all pages.


[View source]
def null #

Inserts a pad -- NUL currently prints \x80 instead of being an ignored sequence.

Aliases: nul, pad


[View source]
def repeat(str, i = 1) #

Repeats string str i times.

TODO support io-based version of this


[View source]