Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demote the "pseudo console" support to opt-in #6

Merged
merged 2 commits into from
May 20, 2020

Conversation

dscho
Copy link
Collaborator

@dscho dscho commented May 19, 2020

To make it easier to experiment with it, we now also support MSYS=enable_pcon (in addition to the equivalent but unintuitive MSYS=nodisable_pcon).

dscho added 2 commits May 19, 2020 14:00
The pseudo console support is just a bit too buggy still:

- When typing anything in an interactive Bash session before the prompt
  is shown, frequently the keystrokes are then replayed _twice_ when the
  prompt is active.

  Even worse: it seems that under certain circumstances (e.g. when
  spawning `less.exe` from a MINGW process), keystrokes are recorded
  while a process is active that wants to consume them but those
  recorded keystrokes are then replayed once the process finished (e.g.
  the `q` keystroke to exit `less.exe` will then be misinterpreted for
  interactive input in the Bash session).

- When `vim` is called from a MINGW process, it seems that the terminal
  loses the `onlcr` property after the `vim` process finished, i.e.
  subsequently printed lines do not start at the beginning of the line
  anymore, but precisely where the previous line ended.

- In `vim`, when selecting text visually (via the `v` keystroke), it
  seems that the selection is frequently reset while navigating with the
  arrow keys.

There are probably quite a few more rough edges in the pseudo console
feature, unfortunately.

In light of these issues, it makes most sense to disable the pseudo
console support and make it opt-in rather than opt-out.

Signed-off-by: Johannes Schindelin <[email protected]>
It is simply the negation of `disable_pcon`, i.e. `MSYS=enable_pcon` is
equivalent to `MSYS=nodisable_pcon` (the former is slightly more
intuitive than the latter) and likewise `MSYS=noenable_pcon` is
equivalent to `MSYS=disable_pcon` (here, the latter is definitely more
intuitive than the former).

This is needed because we just demoted the pseudo console feature to be
opt-in instead of opt-out, and it would be awkward to recommend to users
to use "nodisable_pcon"... "nodisable" is not even a verb.

Signed-off-by: Johannes Schindelin <[email protected]>
@Alexpux Alexpux merged commit 9d69105 into msys2:msys2-3_1_4-release May 20, 2020
@dscho dscho deleted the demote-pcon-to-opt-in branch May 20, 2020 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants