Powershell display resolution problem.

Welcome Forums General PowerShell Q&A Powershell display resolution problem.

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
2 weeks, 3 days ago.

  • Author
    Posts
  • #113228

    Participant
    Points: 0
    Rank: Member

    I am running into a strange screen resolution problem using Powershell. My OS is Win10Pro with all latest updates.
    I have only 1 image in docker, that is Ubuntu. I tried to run this image (I have tried running Powershell in administrator mode. Same issue. Have removed Powershell, rebooted, enabled Powershell again, same issue. My screen resolution display is at original default setting.)

    The command I use was: "docker run-it ubuntu /bin/bash"
    Then hit enter
    The cursor moved to the next line. The line is blank.

    I opened another Powershell. I saw the Ubuntu container was running.
    I stopped the container. When container was stopped, at the original Powershell (the one where cursor shown a blank line) returned this:

    “]0;root@4de9d9044928: /root@4de9d9044928:/# exit”

    So, “root@4de9d9044928:/#” has been displayed on this Powershell all along. But it was displayed beyond the left edge of the screen. This is a screen resolution issue in my Powershell.

    To do a control test, I used dos command prompt.
    I issued the same command to run the Ubuntu image and hit return.
    Dos returned: “root@f371ceca0b1a:/#”
    No issue there.

    Can someone please tell me what I should do to make this Powershell display its output properly?
    The computer is less than 1 year old. So, it is not likely to have mess up registry problems.

    Thanks in advance.

    Sorcerer

  • #113356

    Keymaster
    Points: 7
    Rank: Member

    The PowerShell window is just set to have a large width. Modify it from the console window's properties page.

You must be logged in to reply to this topic.