Skip to content

Commit

Permalink
fix(xterm): fix xterm resize
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Jan 23, 2024
1 parent 74fc6e4 commit 14ecc9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/components/Xterm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export default defineComponent({
})
}
// force trigger resize event
xterm.resize(xterm.cols, xterm.cols)
if (!socket.connected) {
socket.io.opts.query = query
socket.connect()
Expand Down

1 comment on commit 14ecc9c

@vercel
Copy link

@vercel vercel bot commented on 14ecc9c Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.