Terminal text cols adjusts to terminal container. (#285)

Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
This commit is contained in:
Zack Hankin
2023-12-16 20:57:21 +11:00
committed by GitHub
parent 94ca8a152a
commit e2819afce1
7 changed files with 98 additions and 19 deletions

View File

@ -67,6 +67,7 @@ export class Terminal {
set cols(cols : number) {
this._cols = cols;
log.debug("Terminal", `Terminal cols: ${this._cols}`); // Added to check if cols is being set when changing terminal size.
try {
this.ptyProcess?.resize(this.cols, this.rows);
} catch (e) {