Skip to content

Mintty 2.8.2 + ConEmu - Cannot select text after losing focus #724

Closed

Description

@Jekotia

Note:: Mintty has been acquired via cygwin in all instances here.

I'm submitting this as a mintty bug as I have confirmed the problem is not present on mintty 2.8.1, but IS on 2.8.2. I have tested this on two separate PC's, with fresh installs of cygwin+mintty.

When running mintty 2.8.2 within ConEmu, you lose the ability to select text once the window loses focus. I have found no way to restore this ability to an active terminal. Mintty on its own does no suffer from this bug.

Activity

  1. mintty commented on Dec 21, 2017

    @mintty
    Owner

    See #717; a change was made on purpose to prevent accidental selection (and thus losing previous selection) when you actually just want to refocus mintty.
    So you should be able to click into mintty, then select with another click. This is considered "a feature, not a bug".

  2. chanux commented on Dec 21, 2017

    @chanux

    First of all thanks for the great work!

    I have the same issue after the update. Text selection capability goes away after refocus. I tried selecting after a click and it still doesn't work. Please advice on how the feature works.

    PS: I tested with cmd and powershell as well. The problem is only in Babun tabs.

  3. mintty commented on Dec 21, 2017

    @mintty
    Owner

    How would a working session/"new console" configuration entry in ConEmu actually look like?

  4. chanux commented on Dec 21, 2017

    @chanux

    Hope this is what you are asking for
    %userprofile%\.babun\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/zsh.exe

  5. mintty commented on Dec 21, 2017

    @mintty
    Owner

    [That's not what I was asking for; I had the problem that Transparency spoils mintty display in ConEmu...]

  6. added a commit that references this issue on Dec 21, 2017
  7. mintty commented on Dec 21, 2017

    @mintty
    Owner

    It seems the root cause is ConEmu's incompatible usage of the WM_MOUSEACTIVATE message which should not be sent on every mouse click. Mintty now uses it to prevent mouse focus from accidentally selecting text already. Disabled for ConEmu as a workaround.

  8. avih commented on Dec 21, 2017

    @avih
    Contributor

    This is a bit off topic, but I was using ConEmu too (with msys(1) and cmd.exe top shell windows - so not mintty in ConEmu), and moved to mintty with tmux-in-mintty, and haven't looked back. It gives me everything I used ConEmu for, and more, and has, IMO nicer integration of the window/terminal management and the terminal.

    It does require setting up a new thing, which could take a while until you have everything to your liking, but for me it was well worth the effort.

    Regardless though, making sure mintty and ConEmu can play nice together would be good anyway.

  9. chanux commented on Dec 21, 2017

    @chanux

    @avih I'd like to use tmux but I use a lot of byobu/tmux on servers I get on. I know there are workarounds but it's not very practical for me.

  10. mintty commented on Jan 8, 2018

    @mintty
    Owner

    Released 2.8.3.

  11. mintty commented on Feb 4, 2018

    @mintty
    Owner

    I've revised the tweak to allow other mouse functions.
    You may like to check the update.

  12. CMCDragonkai commented on Feb 7, 2018

    @CMCDragonkai

    I just upgraded to mintty 2.8.4 and conemu 18.2.6.0. I have the child gui setting checked "Focus in child windows". This has changed one thing. I can now double click on a line, and get a highlight over it inside mintty. However Click + Drag for selection of the text still doesn't work.
    ConEmu/ConEmu#1382

  13. mintty commented on Feb 7, 2018

    @mintty
    Owner

    Click + Drag for selection of the text still doesn't work. ConEmu/ConEmu#1382

    See my comment there; the child application is getting sent a WM_MOUSEACTIVATE message every time a mouse button is clicked, independently of the "Focus in child windows" setting.
    If I feel like it, I make check for another ConEmu-specific workaround...

  14. mintty commented on Apr 12, 2018

    @mintty
    Owner

    Released 2.8.5 with a workaround.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions