weixin_39950010
weixin_39950010
2021-01-07 12:22

Console not working on Windows 10 1809 update

I have updated my WIndows 10 to version 1809. When I open Console I get a black console window without a path visible. When I press a key the path becomes visible,

Expected Behavior

When I open the executable I want to see the path of the directory were console is started

Actual Behavior

When I open the executable I don't see the path untill I press a key

Steps to reproduce

Open the executable

Diagnostic Report


ConsoleZ aero amd64 1.18.3.18143
Windows 10 (64 bits) [10.0.17763]
is elevated? no
UAC prefix "Administrator: "
Tab (active): PowerShell
  View (active): 1. PowerShell
  is elevated? yes
  input code page 437
  output code page 437
  Windows console font
font index: 0
face name: Consolas
font familly: 54 MODERN vector true type
font weight: 400
font size: width=8 height=16
max window size: cols=80 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Monitors 1
+ Flags 1  primary
  DeviceID \\?\DISPLAY#SDC4C48#4&15528784&0&UID265988#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
  DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96e-e325-11ce-bfc1-08002be10318}\0003
  DeviceName \\.\DISPLAY1\Monitor0
  DeviceString Generic PnP Monitor
  StateFlags 3
  Rect (0,0)x(1920,1080)
  Work (0,0)x(1920,1040)
  DPI (per monitor: yes) X=96 Y=96
System dpi 96
System metrics
  SM_CXSMICON        16
  SM_CYSMICON        16
  SM_CXICON          32
  SM_CYICON          32
  SM_CXVIRTUALSCREEN 1920
  SM_CYVIRTUALSCREEN 1080
  SM_CYVIRTUALSCREEN 1080
Settings file C:\Users\Danny\AppData\Roaming\Console\console.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<settings lang="auto" icon_size="0">
    <console shell="" init_dir="" refresh="100" change_refresh="10" rows="25" columns="80" buffer_rows="500" buffer_columns="0" start_hidden="0" save_size="0">
        <colors background_text_opacity="255">
            <color id="0" r="0" g="0" b="0"></color>
            <color id="1" r="0" g="0" b="128"></color>
            <color id="2" r="0" g="150" b="0"></color>
            <color id="3" r="0" g="150" b="150"></color>
            <color id="4" r="170" g="25" b="25"></color>
            <color id="5" r="128" g="0" b="128"></color>
            <color id="6" r="128" g="128" b="0"></color>
            <color id="7" r="192" g="192" b="192"></color>
            <color id="8" r="128" g="128" b="128"></color>
            <color id="9" r="0" g="100" b="255"></color>
            <color id="10" r="0" g="255" b="0"></color>
            <color id="11" r="0" g="255" b="255"></color>
            <color id="12" r="255" g="50" b="50"></color>
            <color id="13" r="255" g="0" b="255"></color>
            <color id="14" r="255" g="255" b="0"></color>
            <color id="15" r="255" g="255" b="255"></color>
        </colors>
        <cursor style="0" r="255" g="255" b="255"></cursor>
        <background type="0" r="0" g="0" b="0">
            <image file="" relative="0" extend="0" position="0">
                <tint opacity="0" r="0" g="0" b="0"></tint></image></background></console>
    <appearance>
        <font name="Courier New" size="10" extra_width="0" bold="0" italic="0" smoothing="0" bold_intensified="0" italic_intensified="0" ligature="0">
            <color use="0" r="0" g="0" b="0"></color></font>
        <window title="ConsoleZ" icon="" main_title_format="?U([%u] )?N({%u} )%m?s( - %s)" tab_title_format="%n. ?U([%u] )?N({%u} )%t?s( - %s)" use_tab_icon="1" use_tab_title="1" trim_tab_titles="20" trim_tab_titles_right="0"></window>
        <fullscreen start_in_fullscreen="0" fullscreen_monitor="0">
            <controls show_menu="1" show_toolbar="1" show_searchbar="1" show_statusbar="1" show_tabs="1" hide_single_tab="1" tabs_on_bottom="0" hide_tab_icons="0" hide_tab_close_button="0" hide_tab_new_button="0" show_scrollbars="1"></controls>
            <transparency type="0" active_alpha="255" inactive_alpha="255" r="0" g="0" b="0" active="1"></transparency></fullscreen>
        <controls show_menu="1" show_toolbar="1" show_searchbar="1" show_statusbar="1" show_tabs="1" hide_single_tab="1" tabs_on_bottom="0" hide_tab_icons="0" hide_tab_close_button="0" hide_tab_new_button="0" show_scrollbars="1"></controls>
        <styles caption="1" resizable="1" taskbar_button="1" border="1" inside_border="2" split_bar_size="0" tray_icon="1" quake_like="0" quake_animation_time="300" jumplist="0" integrated_ime="0" hide_when_inactive="0" per_monitor_dpi="0" keep_view_theme="0">
            <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" save_position="0" w="-1" h="-1" save_size="0" z_order="0" dock="-1" snap="-1" save_state="0" state="-1"></position>
        <transparency type="0" active_alpha="255" inactive_alpha="255" r="0" g="0" b="0" active="1"></transparency></appearance>
    <behavior>
        <copy_paste copy_on_select="0" clear_on_copy="1" sensitive_copy="1" no_wrap="1" eol_spaces="1" trim_spaces="1" rtf="1" copy_newline_char="0" include_left_delimiter="0" include_right_delimiter="0" left_delimiters=" ([" right_delimiters=" )]"></copy_paste>
        <scroll page_scroll_rows="0"></scroll>
        <tab_highlight flashes="3" stay_highligted="1"></tab_highlight>
        <environment inherit="1" sync="1"></environment>
        <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>
        <close allow_closing_last_view="0" exit_on_closing_of_last_tab="1" confirm_closing_multiple_views="1" save_workspace_on_exit="0"></close></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="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="maximizeview"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="restoreview"></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="resumescroll"></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="0" shift="0" alt="0" extended="0" code="0" command="alwaysontop"></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="cmdSnippets"></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="wspload"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="wspsave"></hotkey>
        <hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="fwdmouse"></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>
    <external_commands>
    </external_commands>
    <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>
            <action ctrl="0" shift="0" alt="0" button="0" name="snippets"></action>
        </actions></mouse>
    <snippets dir=""></snippets>
    <tabs>
        <tab title="PowerShell" use_default_icon="0">
            <console shell="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit" init_dir="" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="1"></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></settings>

Crash Report

No crash

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

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

10条回答

  • weixin_39978749 weixin_39978749 4月前

    Please fill the issue by following the template.

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

    Edited my issue

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

    Same also happens in Visual Studio Code's terminal. https://github.com/Microsoft/vscode/issues/57803

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

    Having the same issue, the window opens scrolled to the bottom cutting off the text

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

    I get this sporadically, in my case I think it's because of some DPI funkyness in that my monitors have different DPI... so depending what monitor I opened the tab then move it to another on it behaves differently.

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

    When I increase the windows size properties the issue is also gone. Is this a Windows 'bug' or a Console issue?

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

    It seems that Android Studio for Windows also has this issue. It may be a Windows bug.

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

    This is a known Windows bug that should be fixed in the next major release for legacy code, and they expect to also release a new PTY API that should allow for drastic improvement in console type programs that use it, which will also not suffer from this bug.

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

    ConEmu doesn't appear to have this issue with cmd.exe. What is it doing differently?

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

    The VSCode issue referenced above was fixed by enabling support for the new ConPTY system.

    Introduction to ConPTY: https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/

    So existing apps should either update to support ConPTY or wait for backward compatibility fix. Updating for the modern system would be preferred, I'd say.

    What's the current plan?

    Quote from the link above:

    3rd Party Console/Service Developers If you’re a developer working on a stand-alone Console/Terminal app, or are integrating a Console inside of an application, then we strongly encourage you to explore and adopt the new ConPTY API at your earliest convenience: Adopting the ConPTY API (rather than the older off-screen Console mechanism) is likely to eliminate several classes of bugs, while increasing stability, reliability, and performance.

    点赞 评论 复制链接分享

相关推荐