weixin_39534149
weixin_39534149
2021-01-07 12:59

Arrow keys not working in Bash on Windows 10

Bash on Windows 10 is a new thing, currently available for beta testing by Windows Insiders only. Running bash.exe or cmd.exe /C bash from Run dialog (Win + R) directly works fine. Running bash.exe or cmd.exe /C bash from ConsoleZ seems to work too, but arrow keys do not work.

Expected Behavior

Hitting arrow keys (right, left, up, down, home, end) should allow me to navigate the current line of prompt as well as inside editors like vim, nano, etc.

Actual Behavior

Hitting arrow keys has no effects either on the prompt or inside editors. Inside vim, I can still use j/k to navigate up/down so it's the problem with arrow keys specifically.

Steps to reproduce

  1. You need to be a Window Insiders (Register at https://insider.windows.com/)
  2. You need to run Windows 10, build 14316 (hit Win + R and run "winver" to check your build number)
  3. You need to have Bash on Ubuntu on Windows installed. (See https://blogs.windows.com/windowsexperience/2016/04/06/announcing-windows-10-insider-preview-build-14316/ for instructions)
  4. Run either cmd.exe, or powershell.exe in ConsoleZ, then run "bash" (C:\WINDOWS\system32\bash.exe to be exact). Type a few characters then try to use arrow keys and you will see.
  5. Alternative to 4, run C:\WINDOWS\system32\bash.exe directly in ConsoleZ, which will yield the same issue.
  6. Run bash.exe directly from Win + R to confirm arrow keys work outside of ConsoleZ.

Diagnostic Report


ConsoleZ aero amd64 1.16.1.16068
is elevated? no
UAC prefix "Administrator: "
Tab (active): Bash
  View (active): 1. Bash
  is elevated? no
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=3 height=5
max window size: cols=154 rows=187
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Monitors 3
+ Flags 1  primary
  DeviceID \\?\DISPLAY#MEI96A2#4&1835d135&0&UID265988#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
  DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
  DeviceName \\.\DISPLAY1\Monitor0
  DeviceString Surface Display
  StateFlags 3
  Rect (0,0)x(3000,2000)
  Work (0,80)x(3000,2000)
  DPI (per monitor: yes) X=192 Y=192
+ Flags 0
  DeviceID \\?\DISPLAY#DELA0A6#4&1835d135&0&UID200195#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
  DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96e-e325-11ce-bfc1-08002be10318}\0002
  DeviceName \\.\DISPLAY2\Monitor0
  DeviceString Dell U3415W(DisplayPort)
  StateFlags 3
  Rect (-1878,-1440)x(1562,0)
  Work (-1878,-1400)x(1562,0)
  DPI (per monitor: yes) X=96 Y=96
+ Flags 0
  DeviceID \\?\DISPLAY#DELA0A6#4&1835d135&0&UID208387#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
  DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96e-e325-11ce-bfc1-08002be10318}\0003
  DeviceName \\.\DISPLAY3\Monitor0
  DeviceString Dell U3415W(DisplayPort)
  StateFlags 3
  Rect (1562,-1440)x(5002,0)
  Work (1562,-1400)x(5002,0)
  DPI (per monitor: yes) X=96 Y=96
System dpi 192
System metrics
  SM_CXSMICON        32
  SM_CYSMICON        32
  SM_CXICON          64
  SM_CYICON          64
  SM_CXVIRTUALSCREEN 6880
  SM_CYVIRTUALSCREEN 3440
  SM_CYVIRTUALSCREEN 3440
Settings file C:\Users\duybui\Programs\ConsoleZ\console.xml
<?xml version="1.0"?>
<settings>
    <console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="500" buffer_columns="0" shell="" init_dir="" start_hidden="0" save_size="0" background_text_opacity="255">
        <colors background_text_opacity="255">
            <color id="0" r="57" g="57" b="57"></color>
            <color id="1" r="31" g="91" b="255"></color>
            <color id="2" r="175" g="255" b="0"></color>
            <color id="3" r="135" g="255" b="255"></color>
            <color id="4" r="239" g="41" b="41"></color>
            <color id="5" r="209" g="138" b="255"></color>
            <color id="6" r="255" g="135" b="0"></color>
            <color id="7" r="198" g="198" b="198"></color>
            <color id="8" r="178" g="178" b="178"></color>
            <color id="9" r="95" g="175" b="215"></color>
            <color id="10" r="161" g="219" b="0"></color>
            <color id="11" r="0" g="215" b="175"></color>
            <color id="12" r="255" g="75" b="75"></color>
            <color id="13" r="255" g="78" b="163"></color>
            <color id="14" r="252" g="233" b="79"></color>
            <color id="15" r="253" g="253" b="231"></color>
        </colors>
        <cursor style="12" r="255" g="255" b="255"></cursor>
        <background type="0" r="48" g="48" b="48">
            <image file="" relative="0" extend="0" position="0">
                <tint opacity="0" r="0" g="0" b="0"></tint>
            </image>
        </background>
    </console>
    <appearance>
        <font name="Fira Code Retina" size="12" bold="0" italic="0" smoothing="3" bold_intensified="0" italic_intensified="0" extra_width="0" ligature="1">
            <color use="0" r="0" g="0" b="0"></color>
        </font>
        <window title="ConsoleZ" icon="" use_tab_icon="1" use_console_title="0" show_cmd="1" show_cmd_tabs="1" use_tab_title="1" trim_tab_titles="20" trim_tab_titles_right="0" main_title_format="?U([%u] )?N({%u} )%m?s( - %s)" tab_title_format="%n. ?U([%u] )?N({%u} )%t?s( - %s)"></window>
        <controls show_menu="0" show_toolbar="0" show_statusbar="0" show_tabs="1" hide_single_tab="1" show_scrollbars="1" flat_scrollbars="0" tabs_on_bottom="0" hide_tab_icons="0" show_searchbar="0"></controls>
        <styles caption="0" resizable="1" taskbar_button="1" border="0" inside_border="2" tray_icon="0" quake_like="0" jumplist="1" integrated_ime="0" quake_animation_time="300" hide_when_inactive="0" per_monitor_dpi="1">
            <selection_color r="255" g="255" b="255"></selection_color>
            <highlight_color r="191" g="191" b="191"></highlight_color>
        </styles>
        <position x="-1" y="-1" dock="-1" snap="-1" z_order="0" save_position="0" w="-1" h="-1" save_size="0"></position>
        <transparency type="0" active_alpha="255" inactive_alpha="255" r="0" g="0" b="0"></transparency>
        <fullscreen start_in_fullscreen="0" fullscreen_monitor="0">
            <controls show_menu="0" show_toolbar="0" show_searchbar="0" show_statusbar="0" show_tabs="1" hide_single_tab="1" tabs_on_bottom="0" hide_tab_icons="0" show_scrollbars="1"></controls>
        </fullscreen>
    </appearance>
    <behavior>
        <copy_paste copy_on_select="1" clear_on_copy="1" no_wrap="1" trim_spaces="1" copy_newline_char="1" sensitive_copy="1" include_left_delimiter="0" include_right_delimiter="0" left_delimiters=" ([" right_delimiters=" )]" eol_spaces="1" rtf="1"></copy_paste>
        <scroll page_scroll_rows="0"></scroll>
        <tab_highlight flashes="3" stay_highligted="1"></tab_highlight>
        <close allow_closing_last_view="0" confirm_closing_multiple_views="1"></close>
        <focus follow_mouse="0"></focus>
        <instance allow_multi="1"></instance>
        <clone use_current_dir="0"></clone>
        <search match_case="0" match_whole_word="0"></search>
        <runas use_credprov="1"></runas>
    </behavior>
    <hotkeys use_scroll_lock="1">
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="83" command="settings"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="112" command="help"></hotkey>
        <hotkey ctrl="0" shift="0" alt="1" extended="0" code="115" command="exit"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="112" command="newtab1"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="113" command="newtab2"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="114" command="newtab3"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="115" command="newtab4"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="116" command="newtab5"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="117" command="newtab6"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="118" command="newtab7"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="119" command="newtab8"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="120" command="newtab9"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="121" command="newtab10"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="122" command="newtab11"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="123" command="newtab12"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="49" command="switchtab1"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="50" command="switchtab2"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="51" command="switchtab3"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="52" command="switchtab4"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="53" command="switchtab5"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="54" command="switchtab6"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="55" command="switchtab7"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="56" command="switchtab8"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="57" command="switchtab9"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="48" command="switchtab10"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="switchtab11"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="switchtab12"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="9" command="nexttab"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="9" command="prevtab"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="movetableft"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="movetabright"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="87" command="closetab"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="82" command="renametab"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="1" code="34" command="nextview"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="1" code="33" command="prevview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="1" extended="1" code="37" command="leftview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="1" extended="1" code="39" command="rightview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="1" extended="1" code="38" command="topview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="1" extended="1" code="40" command="bottomview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="dechsize"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="inchsize"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="decvsize"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="incvsize"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="87" command="closeview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="detachview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="attach"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="79" command="splithoriz"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="69" command="splitvert"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="splitswap"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="clone"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="122" command="fullscreen"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="96" command="zoom100"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="107" command="zoominc"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="109" command="zoomdec"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="71" command="groupall"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="71" command="ungroupall"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="84" command="grouptab"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="84" command="ungrouptab"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="clear"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="1" code="45" command="copy"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="0" code="65" command="selectall"></hotkey>
        <hotkey ctrl="1" shift="0" alt="0" extended="1" code="46" command="clear_selection"></hotkey>
        <hotkey ctrl="0" shift="1" alt="0" extended="1" code="45" command="paste"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="paste_selection"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="stopscroll"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselleft"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselright"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textseltop"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselbottom"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselhome"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselend"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselpageup"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselpagedown"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselleft"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselright"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colseltop"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselbottom"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselhome"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselend"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselpageup"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselpagedown"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowup"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowdown"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageup"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpagedown"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolleft"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolright"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageleft"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageright"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="find"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="findnext"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="findprev"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="switchtransparency"></hotkey>
        <hotkey ctrl="1" shift="1" alt="0" extended="0" code="112" command="dumpbuffer"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdMenu1"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdMenu2"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdMenu3"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="ctrlC"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd1"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd2"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd3"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd4"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd5"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd6"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd7"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd8"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd9"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd10"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="activate" win="0"></hotkey>
    </hotkeys>
    <mouse>
        <actions>
            <action ctrl="0" shift="0" alt="0" button="1" name="copy"></action>
            <action ctrl="0" shift="1" alt="0" button="1" name="select"></action>
            <action ctrl="0" shift="0" alt="0" button="0" name="select_column"></action>
            <action ctrl="0" shift="0" alt="0" button="3" name="paste"></action>
            <action ctrl="1" shift="0" alt="0" button="1" name="drag"></action>
            <action ctrl="0" shift="0" alt="0" button="4" name="link"></action>
            <action ctrl="0" shift="0" alt="0" button="2" name="menu"></action>
            <action ctrl="0" shift="0" alt="0" button="0" name="menu2"></action>
            <action ctrl="0" shift="0" alt="0" button="0" name="menu3"></action>
        </actions>
    </mouse>
    <tabs>
        <tab title="PowerShell" use_default_icon="0">
            <console shell="powershell -NoProfile -NoExit -File %USERPROFILE%\setup\WindowsPowerShell\Microsoft.PowerShell_profile.ps1" init_dir="" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="0"></console>
        </tab>
        <tab title="PowerShell (admin)" use_default_icon="0">
            <console shell="powershell -NoProfile -NoExit -File %USERPROFILE%\setup\WindowsPowerShell\Microsoft.PowerShell_profile.ps1" init_dir="" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="1"></console>
        </tab>
        <tab title="UM" use_default_icon="0">
            <console shell='"C:\Program Files\Git\usr\bin\ssh.exe" -A -Y -L 2009:localhost:2009 duybui.aka.iad.amazon.com' init_dir="" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="0">
                <env var="SSH_AUTH_SOCK" value="/TMP/SSH-NHZMWTU2CFOT/AGENT.13856" check="1"></env>
                <env var="SSH_AGENT_PID" value="16932" check="1"></env>
            </console>
        </tab>
        <tab title="Bash" use_default_icon="1">
            <console shell="bash" init_dir="" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="0"></console>
        </tab>
        <tab title="ConsoleZ" use_default_icon="0">
            <console shell="" init_dir="" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="0"></console>
        </tab>
    </tabs>
    <external_commands>
</external_commands>
</settings>

该提问来源于开源项目:cbucher/console

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

25条回答

  • weixin_39978749 weixin_39978749 4月前

    It has nothing to do with this issue. You activated scroll lock mode. image

    image

    点赞 评论 复制链接分享
  • weixin_39827905 weixin_39827905 4月前

    That was it. Although I can't make it reproducible with these menu items. Solved by turning Scroll Lock off from osk.exe - my laptop has no dedicated key. Now I'm puzzled how it got turned on - I can't find any Fn+ combination for Scroll Lock either. Thanks and sorry for bothering with not an actual issue.

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    Good News. The Microsoft patch will be available in any build insider of Windows 10 with a version higher than 17017 (so it is not in the Fall Creators Update).

    点赞 评论 复制链接分享
  • weixin_39789979 weixin_39789979 4月前

    Keypress doesn't work in Git Bash for me also. But it works fine with ConEmu64 (https://conemu.github.io/) on Windows 10.

    点赞 评论 复制链接分享
  • weixin_39791152 weixin_39791152 4月前

    It has nothing to do with this issue. You activated scroll lock mode.

    Thank you for helping with PEBCAK. I had run into this "issue" a couple of times forgot about the scroll lock key, as it also affects the arrow keys.

    点赞 评论 复制链接分享
  • weixin_39602579 weixin_39602579 4月前

    For people following this. The Spring Creators update https://www.microsoft.com/en-us/software-download/windows10 seems to fix this issue.

    It's not GA yet but if you can download and install it manually.

    点赞 评论 复制链接分享
  • weixin_39797381 weixin_39797381 4月前

    Yay! Finally we can close this issue.

    Took only just 2 years :(

    点赞 评论 复制链接分享
  • weixin_39719472 weixin_39719472 4月前

    Confirm seems to work in 1803 with an oldish ver of Console

    点赞 评论 复制链接分享
  • weixin_39560207 weixin_39560207 4月前

    Same bug here when add the bash directly in a tab of ConsoleZ.

    Thanks for help.

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    The way "Bash on Ubuntu on Windows" is launched change nothing to the issue. There is a bug in implementation of the virtual terminal input handling in the console host (Windows Subsystem for Linux). https://github.com/Microsoft/BashOnWindows/issues/111#issuecomment-232733125

    This is always a beta. The issue is tracked by Microsoft development team. Hope the fix come quickly. Microsoft vscode project seems to encounter the same issue. I think this can have a good impact on issue priority :wink:

    点赞 评论 复制链接分享
  • weixin_39538877 weixin_39538877 4月前

    The original Console2 2.0 beta148 x64 https://sourceforge.net/projects/console/ dose not have this arrow keys issue, but it is not hi-dpi compatible application. I hope this will help you.

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    The original Console2 doesn't use WriteConsoleInput API but simply forward window message (WM_CHAR, ...) to the hidden console window.

    Forwarding window message doesn't work with: - mixing elevated/normal applications - remote calling - grouping consoles (dead chars)

    点赞 评论 复制链接分享
  • weixin_39737492 weixin_39737492 4月前

    Too bad because it seems that is a problem from Microsoft/Ubuntu/Bash but I don't think that they will solve the problem because bash don't works with WriteConsoleInput and nobody will change this.

    I got you cbucher but the only solution is probably to do like ConEmu and to add a workaround to ConsoleZ

    点赞 评论 复制链接分享
  • weixin_39534149 weixin_39534149 4月前

    Any updates?

    点赞 评论 复制链接分享
  • weixin_39900736 weixin_39900736 4月前

    Also having this issue with ConsoleZ 1.17.2.

    点赞 评论 复制链接分享
  • weixin_39769187 weixin_39769187 4月前

    +1

    Console 2 isn't affect by this.

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    People, if you really want this bug be fixed you should massively ask about progress here: https://github.com/Microsoft/BashOnWindows/issues/111

    It seems Visual Studio Code will use winpty as workaround. Microsoft has not planned to fix this bug because too few people has complained and some applications wrote workaround. If you want Microsoft developers change their mind, show them you care about this bug!

    I don't know if workarounds are 100% functional...

    点赞 评论 复制链接分享
  • weixin_39978282 weixin_39978282 4月前

    Can you implement a workaround in the meantime? Please see https://github.com/Microsoft/BashOnWindows/issues/111#issuecomment-234460063 ... thanks

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    You can use WSL Bridge. This is the "workaround" used by other term/console wrapper applications. WSL Bridge releases a Windows executable and a back-end WSL executable. These executables communicate with TCP connection. This tool simply bypasses Microsoft work! (WSL integration with Windows console). Personally, I don't consider this is a good workaround and I cannot understand Microsoft's answer: "we don't know if we will fix this bug because a workaround exists" You can also use a local SSH session.

    Microsoft will fix a feature bug only if people massively insist (for example, by commenting here: https://github.com/Microsoft/BashOnWindows/issues/111).

    image

    点赞 评论 复制链接分享
  • weixin_39827905 weixin_39827905 4月前

    I came here while looking for anything related to following: Arrow keys stopped to work for history navigation in PowerShell opened in ConsoleZ - they do scrolling instead. F8 still works for history. And arrows work in underlying PS window if shown.

    Is this the same issue or should I open separate one? If they made it work in vscode somehow, it might be time to do some changes too.

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    Please follow issue creation instructions, otherwise this issue will be closed.

    点赞 评论 复制链接分享
  • weixin_39534149 weixin_39534149 4月前

    I added the missing info.

    点赞 评论 复制链接分享
  • weixin_39861498 weixin_39861498 4月前

    I can confirm this under win10, arrow keys not working with power shell

    点赞 评论 复制链接分享
  • weixin_39978749 weixin_39978749 4月前

    Concerning BashOnWindows issue, we can only hope a fix from Microsoft... https://github.com/Microsoft/BashOnWindows/issues/111

    ( PowerShell can not be affected by the current issue...)

    点赞 评论 复制链接分享
  • weixin_39887846 weixin_39887846 4月前

    I've also run into this issue. It will likely be more common now, since Windows bash was recently released to the public.

    点赞 评论 复制链接分享

相关推荐