problem with pcon after updating msys2-runtime to 3.6.10-1

Open
#349 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c

Research direction

Reproduce the issue with the commands in probe.exp and expect probe.exp, then inspect the MSYS disable_pcon behavior and the generated ESC[6n sequence. Done means the prompt is no longer corrupted after running the example and dejagnu is not broken, without relying on the documented workaround.

Written by the indexing model from the issue text.

Description

Put this code into probe.exp

spawn C:/Windows/System32/where.exe cmd
expect eof
puts -nonewline $expect_out(buffer)

and run it with

expect probe.exp

you will see a broken prompt

$ ;1R;1R

Apparently it happens because expect produces the ANSI escape sequence ESC[6n. This breaks dejagnu for example. A workaround is to disable pcon by adding disable_pcon to MSYS. You need to use spaces as separators BTW.

Dominant language
C
Stars
240
Forks
60
Avg merge
2d 3h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from msys2/msys2-runtime

All issues in msys2/msys2-runtime

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.