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
21 22 23 24 |
# File 'lib/daytona/common/pty.rb', line 21 def initialize(rows:, cols:) @rows = rows @cols = cols end |
Instance Attribute Details
#cols ⇒ Integer (readonly)
Returns Number of terminal columns (width).
15 16 17 |
# File 'lib/daytona/common/pty.rb', line 15 def cols @cols end |
#rows ⇒ Integer (readonly)
Returns Number of terminal rows (height).
12 13 14 |
# File 'lib/daytona/common/pty.rb', line 12 def rows @rows end |