4

Usual Windows applications (e.g. Cygwin terminal) will open an upper-leftmost menu for resizing/moving/closing the window, by typing Alt+Space, which is very convenient because you don't have to leave your keyboard.

Now, How can I do the similar in a bash terminal window of Windows Subsystem for Linux ? (that is, I'd like to move/resize the window from keyboard) It doesn't respond to Alt+Space key sequence.

If there were no means to directly do that, any suggestions for alternatives are welcome.

  • 1
    Use a terminal emulator like wsltty, conemu etc. or ssh into wsl. – Biswapriyo Mar 13 '19 at 5:13
  • I've tried wsltty and found it great so far! – ŌHARA Kazutaka Mar 14 '19 at 13:15
4

When attached to Cmd, Windows Console (the terminal UX) intercepts many keys / chords to, for example, display its system menu if you hit ALT + SPACE.

However, when connected to WSL, Console intercepts almost no key chords at all because in the Linux world, Terminals traditionally do no work - all key strokes/chords are passed to the application (e.g. bash) for the app to decide what to do with.

If Console was to intercept ALT + SPACE to display the system menu, then Linux applications that require the user to use ALT + SPACE for some operation or other would fail to work, and there would be much gnashing of teeth. For example, when running emacs in Hyper which appears to be intercepting ALT + SPACE

HOWEVER, all is not lost. We are keen to figure-out a way to better handle keyboard mapping for a future release of Console. But this is a pretty large work item that's a little way down our backlog at present, so please be patient with us ;)

Update 2019-07-24

Alas, because Console's primary role is backward compatibility, we cannot add ALT + SPACE support to Console.

However, we do encourage you to download and use our new Windows Terminal which offers far more configuration options, including the ability to map many key chords, as well as better control colors, styling, background blur/transparency, etc.: https://github.com/microsoft/terminal

Please watch this playlist to see the Terminal's "sizzle video" and our deep-dive session from Build. enter image description here

| improve this answer | |
  • Hurry it up, this is annoying. – spiralofhope Jul 17 '19 at 15:37
  • @spiralofhope Please read my update above. – Richard Turner Jul 24 '19 at 16:16
  • @RichardTurner : Thanks for the response . Please see a new ticket I opened just now superuser.com/questions/1482230/…. This is for chrome -- no ALT+SPACE. Notepad -- no ALT+SPACE either. What is happening ? – anjanbacchu Sep 13 '19 at 9:52
  • Please report issues directly on the Console/Terminal repo: github.com/microsoft/terminal - this is where the Console/Terminal team hang out and where you're most likely going to see a response. – Richard Turner Sep 18 '19 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.