Class: Vte::Pty

Inherits:
Object
  • Object
show all
Defined in:
lib/vte3/pty.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Pty

Returns a new instance of Pty.



20
21
22
23
24
25
26
27
# File 'lib/vte3/pty.rb', line 20

def initialize(*args)
  case args[0]
  when PtyFlags
    initialize_new_sync(*args)
  else
    initialize_raw(*args)
  end
end

Instance Method Details

#initialize_rawObject



19
# File 'lib/vte3/pty.rb', line 19

alias_method :initialize_raw, :initialize

#sizeObject



30
31
32
33
34
35
36
37
# File 'lib/vte3/pty.rb', line 30

def size
  succeeded, rows, columns = size_raw
  if succeeded
    [rows, columns]
  else
    nil
  end
end

#size_rawObject



29
# File 'lib/vte3/pty.rb', line 29

alias_method :size_raw, :size