Class: Vte::Pty
- Inherits:
-
Object
- Object
- Vte::Pty
- Defined in:
- lib/vte4/pty.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Pty
constructor
A new instance of Pty.
- #initialize_raw ⇒ Object
- #size ⇒ Object
- #size_raw ⇒ Object
Constructor Details
#initialize(*args) ⇒ Pty
Returns a new instance of Pty.
20 21 22 23 24 25 26 27 |
# File 'lib/vte4/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_raw ⇒ Object
19 |
# File 'lib/vte4/pty.rb', line 19 alias_method :initialize_raw, :initialize |
#size ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/vte4/pty.rb', line 30 def size succeeded, rows, columns = size_raw if succeeded [rows, columns] else nil end end |
#size_raw ⇒ Object
29 |
# File 'lib/vte4/pty.rb', line 29 alias_method :size_raw, :size |