class TTYString::CSICode::J

Public Class Methods

arg_re() click to toggle source
# File lib/tty_string/csi_code_definitions.rb, line 71
def self.arg_re
  /[0-3]?/
end

Public Instance Methods

action(mode = 0) click to toggle source
# File lib/tty_string/csi_code_definitions.rb, line 75
def action(mode = 0)
  # :nocov: else won't ever be called. don't worry about it
  case mode
  # :nocov:
  when 0 then screen.clear_forward
  when 1 then screen.clear_backward
  when 2, 3 then screen.clear
  end
end