Skip to content

PowerShell in Windows BASH display issues #1829

Closed

Description

Steps to reproduce

I just want this to be noted. I see some interest with Windows 10 include BASH.
I try to run PowerShell in Windows Bash cmd. I installed it using the Ubuntu version 14.04.

$ sudo apt-get install libunwind8
$ sudo apt-get install libicu52
$ cd Downloads
$ sudo dpkg -i powershell_6.0.0-alpha.8-1_amd64-ubuntu.14.04-x64.deb

poshbash_01

poshbash_02

Commands seem to execute but the screen refresh after running the command won't clear. Also, when you start typing, the prompt is gone and start typing at the top of the screen.

Expected behavior

Normal console behavior after running command the return to the next line of the prompt

Actual behavior

See attached images.

poshbash_03
poshbash_04

Environment data

Bash - Windows 10 Pro Insider Preview 14901.rs_prerelease.160805-1700
powershell_6.0.0-alpha.8-1_amd64-ubuntu.14.04-x64.deb

> $PSVersionTable

Activity

  1. changed the title [-]Fix PowerShell in Windows BASH?[/-] [+]PowerShell in Windows BASH display issues[/+] on Aug 16, 2016
  2. rkeithhill commented on Aug 17, 2016

    @rkeithhill
    Collaborator

    Alpha code running correctly on top of Beta code, eh? You expect a lot. :-) I can't even get a simple ASP.NET Core app (default web template) to run correctly in WSL.

  3. MaximoTrinidad commented on Aug 17, 2016

    @MaximoTrinidad
    Author

    Of course!! Haha!!
    At least this is logged. It did load but I want see more!!!!

    I'm loving this Linux stuff.

  4. toenuff commented on Aug 17, 2016

    @toenuff

    FYI, I get a weird console jitter when through Putty to a Linux server as well - not as bad as it is on Win 10 bash though. It's unusable as Max describes with win10 bash.

  5. andyleejordan commented on Aug 17, 2016

    @andyleejordan
    Member

    Tome Tanasovski (@toenuff) that "weird jitter" has been one of known issues for a long time... but I think it got deleted from the known issues page. We're pretty tied to Console.ReadKey() (unless we want to reimplement that!), and it's a bit slow at times. Do me a favor and file an issue with https://github.com/dotnet/corefx tomorrow 😄

  6. Jaykul commented on Aug 21, 2016

    @Jaykul
    Contributor

    Possibly a dupe of #1088 -- but good detail...

  7. MaximoTrinidad commented on Aug 21, 2016

    @MaximoTrinidad
    Author

    Hey Jaykul, #1088 not a duplicate because its specific to Linux issue and not the Bash on Windows 10. Although I see that the console issue looks identical.

    I hope this could be fix some time soon.
    :)

  8. andyleejordan commented on Aug 24, 2016

    @andyleejordan
    Member

    Maximo Trinidad (@MaximoTrinidad) would you please file a bug with BashOnWindows, and reference your issue here? Thanks.

  9. MaximoTrinidad commented on Aug 24, 2016

    @MaximoTrinidad
    Author

    Andy Jordan (@andschwa) ... It's done! I logged the issue in BashOnWindows:
    PowerShell in Windows BASH display issues when typing cmdlets microsoft/WSL#980

  10. lzybkr commented on Aug 24, 2016

    @lzybkr
    Contributor

    The conhost guys took a look - they think #1877 might be contributing the problem.
    I'm working of changing the rendering for multiple reasons, hopefully they're right and my changes will just fix it.

  11. andyleejordan commented on Aug 24, 2016

    @andyleejordan
    Member

    My quick hypothesis is it looks like CursorTop is always zero. We definitely ran into this early on with xterm-like emulators on Linux; perhaps it's recurring with conhost.

  12. added this to the milestone on Sep 29, 2016
  13. lzybkr commented on Oct 7, 2016

    @lzybkr
    Contributor
  14. lypanov commented on Jan 9, 2017

    @lypanov

    I understand that this is meant to be a CLR issue, and that the issue itself is external. But it would for people waiting on this (at least me ;) ) be really nice if we knew when to retry Powershell. Right now it's of no use to me due to these issues alas.

  15. MaximoTrinidad commented on Jan 9, 2017

    @MaximoTrinidad
    Author

    I have to admit that it is sad that this has stalled. The work around still applies and I hope to see this working sometime soon. This is a good opportunity for Windows users using Windows Bash to learn Linux and try PowerShell with it without dealing with building a Linux OS from scratch.

    :)

  16. iSazonov commented on Jan 9, 2017

    @iSazonov
    Collaborator

    The corefx issue flagged as Up for Grabs. So don't expect its a quick fix. 😕

  17. andyleejordan commented on Jan 9, 2017

    @andyleejordan
    Member

    Alexander Kellett (@lypanov), Maximo Trinidad (@MaximoTrinidad), Ilya (@iSazonov), if you want to try out PowerShell on Linux without installing Linux from scratch, perhaps our Linux containers will be of interest to you.

    1. Install Docker for Windows (this should be a fairly straightforward MSI installation)
    2. Open an administrative PowerShell prompt
    3. docker run --interactive --tty microsoft/powershell
    4. You're now in PowerShell, in the Ubuntu 14.04 container, on Windows; try $PSVersionTable

    Here are our Docker images.

  18. MaximoTrinidad commented on Jan 9, 2017

    @MaximoTrinidad
    Author

    Thanks Andy Jordan (@andschwa)!  I got my laptop running Linux with PowerShell since day one. I'm just looking to create awareness with Windows 10 Bash which I already got the workaround doing its magic. No pretty but at least is workable!

    I will take your information provided to play with containers later. This is an area I need to tackle soon.
    :)

    Thanks,
    Maximo Trinidad

  19. iSazonov commented on Jan 10, 2017

    @iSazonov
    Collaborator

    Thanks Andy Jordan (@andschwa)! The main problem is that one Microsoft product (Powershell Core) does not work with other Microsoft product (WSL) harms the reputation of the company despite the fact that the product is still alfa.

  20. glennsarti commented on Mar 28, 2017

    @glennsarti

    Confirmed still in an issue in PS 6.0.0-alpha17

  21. glennsarti commented on Mar 28, 2017

    @glennsarti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions