Skip to content

Commit

Permalink
fix ssh2 typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed Jul 4, 2023
1 parent a9f8b3e commit e58f35d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/portal-server/src/services/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export const shellServiceServer = plugin((server) => {
}

if (req.message.$case === "resize") {
channel.setWindow(req.message.resize.rows + "", req.message.resize.cols + "", "", "");
// 480 and 640 are default values in https://github.com/mscdex/ssh2#pseudo-tty-settings
channel.setWindow(req.message.resize.rows, req.message.resize.cols, 480, 640);

Check warning on line 96 in apps/portal-server/src/services/shell.ts

View check run for this annotation

Codecov / codecov/patch

apps/portal-server/src/services/shell.ts#L96

Added line #L96 was not covered by tests
return;
}

Expand Down

0 comments on commit e58f35d

Please sign in to comment.