* Focus the terminal (make it receive keyboard input)
()
| 334 | * Focus the terminal (make it receive keyboard input) |
| 335 | */ |
| 336 | focus(): void { |
| 337 | const canvas = this.renderer.getCanvas(); |
| 338 | if (canvas.parentElement) { |
| 339 | canvas.parentElement.focus(); |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * Get current selection coordinates (for rendering) |
no test coverage detected