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)



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

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)



12
13
14
# File 'lib/daytona/common/pty.rb', line 12

def cols
  @cols
end

#rowsInteger (readonly)

Returns Number of terminal rows (height).

Returns:

  • (Integer)

    Number of terminal rows (height)



9
10
11
# File 'lib/daytona/common/pty.rb', line 9

def rows
  @rows
end