Class: Daytona::PtySize

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rows:, cols:) ⇒ PtySize

Initialize a new PtySize

Parameters:

  • rows (Integer)

    Number of terminal rows (height)

  • cols (Integer)

    Number of terminal columns (width)



25
26
27
28
# File 'lib/daytona/common/pty.rb', line 25

def initialize(rows:, cols:)
  @rows = rows
  @cols = cols
end

Instance Attribute Details

#colsInteger (readonly)

Returns Number of terminal columns (width).

Returns:

  • (Integer)

    Number of terminal columns (width)



19
20
21
# File 'lib/daytona/common/pty.rb', line 19

def cols
  @cols
end

#rowsInteger (readonly)

Returns Number of terminal rows (height).

Returns:

  • (Integer)

    Number of terminal rows (height)



16
17
18
# File 'lib/daytona/common/pty.rb', line 16

def rows
  @rows
end