Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

[feature request] Bash on Ubuntu on Windows (WSL) #435

Open
francescoboc opened this issue Dec 13, 2017 · 10 comments
Open

[feature request] Bash on Ubuntu on Windows (WSL) #435

francescoboc opened this issue Dec 13, 2017 · 10 comments

Comments

@francescoboc
Copy link

francescoboc commented Dec 13, 2017

Would it be possible to load a Bash on Ubuntu on Windows terminal? (WSL)

Thanks

@francescoboc francescoboc changed the title [feature request] [feature request] Bash on Ubuntu on Windows (WSL) Dec 13, 2017
@HudsonMercer
Copy link

It is already possible however it breaks the arrow keys as well as a few other nav/function keys.

@francescoboc
Copy link
Author

yes it works, that's great! but the breaking of the arrow keys is quite unconfortable, expecially for navigating into the last commands inserted... is it there a fix for that?

thank you very much,
f.

@HudsonMercer
Copy link

There is no fix that can be implemented on the users side that I am aware of. It has to do with how bash sends keys to the console in question. It's sending windows keycodes to a unix system and causing it to do basically nothing from what i understand. You can read more about it here.

microsoft/WSL#111

People using VScode were running into the same issues when using WSL inside of VScode

@c-sonntag
Copy link

Hey everybody, I came across your issue by looking for "WSL platformio compatibility ..."
It makes me think, when I use MSYS2 (http://www.msys2.org/) to fix this kind of problem as with "ghc" (for haskell development), I use the program "winpty".

# Such as a simple script "ghci.sh":
exec winpty -- ghc --interactive "$@"

with ghc --interactive "$@" as a command for "winpty".
Maybe, if the "winpty" program exists for WSL it can help you.

@henryxparker
Copy link

Associated to #221 and #231

@mslinn

This comment has been minimized.

@the-j0k3r
Copy link
Collaborator

@mslinn Ive hidden your comment as offtopic and just to be clear, if you or anyone else has reports about platformio-ide-terminal working or not working with WSL please feel free to post your findings in detail here.

Related to WSL issues with platformio-ide-terminal is also issue #235. Please familiarize yourselfs with the reported issues on these two tickets and proceed ontopic.

Thanks for your understanding.

@mslinn
Copy link

mslinn commented Jul 3, 2019

Your comment seems to suggest that you believe the new Windows API for consoles and the new WIndows Terminal is WSL-specific. It is not. Windows Terminal and the API it is built from is applicable to all of Windows, and in fact is orthogonal to WSL and does not require WSL.

@the-j0k3r
Copy link
Collaborator

This topic/issue is not related to the new Windows API for consoles or new Terminal.

Thanks for your understanding on this.

@einarpersson
Copy link

+1 for WSL support. WSL2 will be a game changer. If I'd understod it correctly USB/serial will not be supported in WSL2 from day 1 but probably in a near future.

Reeaally hope that PlatformIO will work with WSL2 in a not too distant future

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants