Class: Daytona::PtySize
- Inherits:
-
Object
- Object
- Daytona::PtySize
- Defined in:
- lib/daytona/common/pty.rb
Instance Attribute Summary collapse
-
#cols ⇒ Integer
readonly
Number of terminal columns (width).
-
#rows ⇒ Integer
readonly
Number of terminal rows (height).
Instance Method Summary collapse
-
#initialize(rows:, cols:) ⇒ PtySize
constructor
Initialize a new PtySize.
Constructor Details
#initialize(rows:, cols:) ⇒ PtySize
Initialize a new PtySize
18 19 20 21 |
# File 'lib/daytona/common/pty.rb', line 18 def initialize(rows:, cols:) @rows = rows @cols = cols end |
Instance Attribute Details
#cols ⇒ Integer (readonly)
Returns Number of terminal columns (width).
12 13 14 |
# File 'lib/daytona/common/pty.rb', line 12 def cols @cols end |
#rows ⇒ Integer (readonly)
Returns Number of terminal rows (height).
9 10 11 |
# File 'lib/daytona/common/pty.rb', line 9 def rows @rows end |