mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 11:02:17 +00:00
Only query cell size if terminal supports images
This commit is contained in:
parent
f68a933d2c
commit
d4b2b4be04
2 changed files with 5905 additions and 0 deletions
|
|
@ -103,6 +103,10 @@ export class TUI extends Container {
|
|||
}
|
||||
|
||||
private queryCellSize(): void {
|
||||
// Only query if terminal supports images (cell size is only used for image rendering)
|
||||
if (!getCapabilities().images) {
|
||||
return;
|
||||
}
|
||||
// Query terminal for cell size in pixels: CSI 16 t
|
||||
// Response format: CSI 6 ; height ; width t
|
||||
this.cellSizeQueryPending = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue