struct GPM::Config

Defined in:

gpm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(event_mask : Types = Types::All, default_mask : Types = (Types::MOVE | Types::HARD), min_mod : UInt16 = 0, max_mod : UInt16 = 65535, pid : Int32 = Process.pid.to_i32, vc : Int32 = ((File.readlink("/proc/#{Process.pid}/fd/0")).match(/tty(\d+)/)).try() do |__arg0| __arg0[1].to_i end || 0) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(event_mask _event_mask = @event_mask, default_mask _default_mask = @default_mask, min_mod _min_mod = @min_mod, max_mod _max_mod = @max_mod, pid _pid = @pid, vc _vc = @vc) #

[View source]
def default_mask : Types #

def event_mask : Types #

def max_mod : UInt16 #

def min_mod : UInt16 #

def pid : Int32 #

def vc : Int32 #