Sha256: 53a4fbd4c6a02e1e29bd9f2927de6e57545f643bea057e91dec9f6ac72d64a8e
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
# ANSI_escape_code # Ref: https://xn--rpa.cc/irl/term.html # https://en.wikipedia.org/wiki/ANSI_escape_code#CSIsection class Terminal class << self def clear_buffer print "\x1b[3J" end def clear_screen print "\x1b[2J" end def hide_cursor print "\x1b[?25l" end def show_cursor print "\x1b[?25h" end def open_buffer # 打开特殊缓存 print "\x1b[?1049h" end def close_buffer # 关闭特殊缓存 print "\x1b[?1049l" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
firew0rks-0.5.0 | lib/firew0rks/terminal.rb |
firew0rks-0.4.0 | lib/firew0rks/terminal.rb |