question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows Powershell resize

See original GitHub issue

I made an Electron app using xterm.js to integrate a terminal.

When the default terminal is Powershell, it doesn’t resize correctly when maximizing/unmaximazing the windows. The same thing happened on Hyper, or Electerm which use xterm internally.

When using other things than Powershell, like cmd.exe, that works fine.

Details

  • Browser and browser version: Chrome
  • OS version: all Windows versions
  • xterm.js version: latest version

Steps to reproduce

  1. Default shell to Powershell
  2. Download and install Electerm on Windows (for example)
  3. type ls
  4. maximize the window (if it’s not already maximized)
  5. unmaximize the window
  6. maximize the window
  7. type ls and see that ls is not positioned correctly

Screen capture here:

powershell resize

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
trunguttcommented, Apr 6, 2020

So I created another ticket on that https://github.com/microsoft/terminal/issues/5254

1reaction
mat007commented, Apr 5, 2020

Thanks @Tyriar 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resize-Partition (Storage) - Microsoft Learn
The Resize-Partition cmdlet resizes a partition and the underlying file system. Examples. EXAMPLE 1. PowerShell. Copy.
Read more >
Anyone know , is there a way to resize windows ... - Reddit
Anyone know , is there a way to resize windows through powershell? As the title says, I'd like to come up with a...
Read more >
Resize browser window with PowerShell - Dan O'Sullivan's blog
Resize browser window with PowerShell ... today I've been looking for a way to resize my browser window to a consistent size for...
Read more >
Set-ConsoleSize - PowerShell - SS64.com
The size of the PowerShell console window can be manipulated using the $host variable. The height, width and buffer size can all be...
Read more >
Resize Partition Windows 10 - Itechguides.com
Finally, to resize partition on Windows 10 with PowerShell, use the Resize-Partition Cmdet. Resize-Partition -DiskNumber 0 –PartitionNumber 5 -Size $ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found