Skip to content

'MODE CON LINES=100' kills command prompt #4062

Open

Description

@Luuk34

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.535]
Windows Terminal version (if applicable): 0.7.3451.0

Steps to reproduce

Open command prompt ('CMD'), and type 'MODE CON LINES=100'

Expected behavior

The screen is cleared, and prompt is shown at upper left corner.

Actual behavior

No prompt is show (at least characters of prompt are invisible).
command_prompt

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Dec 26, 2019
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Dec 26, 2019
  3. DHowett-MSFT commented on Dec 31, 2019

    @DHowett-MSFT
    Contributor

    This may have been fixed (incidentally) at the same time as #3907; somebody will need to validate.

  4. zadjii-msft commented on Jan 2, 2020

    @zadjii-msft
    Member

    Dustin L. Howett (MSFT) (@DHowett-MSFT) unfortunately, that's not the case :/

    I think this might have to do with the screen attributes somehow. This doesn't repro with my usual prompt, but if I set PROMPT=$p$g, then this always repros. Even set PROMPT=$e[31m$p$g$e[39m will cause this to go away, so there's something wonky with the attributes happening here.


    EDIT: oh no it's worse than that.

    It will sometimes repro with my usual prompt. And sometimes it doesn't.

    OH NO

    I bet it actually does resize the conpty buffer. If you do this in inception (wsl.exe cmd.exe), the console will get bigger. But the Terminal doesn't act on that resize for whatever reason. Either the terminal isn't acting on the ^[[8<rows>;<cols>t sequence, or the resize is never being emitted by conpty. Probably running into that same if clause where we check the maximum possible size of the window, but we don't do that in conpty mode.

  5. added
    Area-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Product-ConptyFor console issues specifically related to conpty
    on Jan 6, 2020
  6. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-ConptyFor console issues specifically related to conpty

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions