* Get current viewport Y position (how many lines scrolled into history)
()
| 68 | * Get current viewport Y position (how many lines scrolled into history) |
| 69 | */ |
| 70 | private getViewportY(): number { |
| 71 | const rawViewportY = |
| 72 | typeof (this.terminal as any).getViewportY === 'function' |
| 73 | ? (this.terminal as any).getViewportY() |
| 74 | : (this.terminal as any).viewportY || 0; |
| 75 | return Math.max(0, Math.floor(rawViewportY)); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Convert viewport row to absolute buffer row |
no outgoing calls
no test coverage detected