https://bugs.winehq.org/show_bug.cgi?id=48758
Bug ID: 48758 Summary: ConEmu Ctrl+c has different behavior Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: rpisl@seznam.cz Distribution: ---
In ConEmu, Ctrl+c behavior is different on Wine and Windows.
ConEmu+Cmd on Windows: Ctrl+c breaks current command and starts new empty prompt Ctrl+C shows ^C
ConEmu+Cmd on Wine: Ctrl+c shows 'c' Ctrl+C terminates ConEmu completely
ConEmu+Far Manager+console application on Windows: Ctrl+c terminates the application Ctrl+C shows ^C
ConEmu+Far Manager+console application on Wine: Ctrl+c does nothing or shows 'c' Ctrl+C terminates the application
https://bugs.winehq.org/show_bug.cgi?id=48758
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://conemu.github.io/ CC| |rpisl@seznam.cz Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #1 from Roman Pišl rpisl@seznam.cz --- Created attachment 66673 --> https://bugs.winehq.org/attachment.cgi?id=66673 Fix
This fix is good enough for my use case.
https://bugs.winehq.org/show_bug.cgi?id=48758
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=48758
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |xerox.xerox2000x@gmail.com
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Confirming that ctrl^c doesn`t work as expected.
@Roman: By pure coincidence i discovered that ctrl^c+SHIFT _does_ terminate an application for me (i ran ConEmu + powershell core). Does that work for you too with ConEmu+cmd or ConEmu+farmanager?
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #3 from Roman Pišl rpisl@seznam.cz ---
@Roman: By pure coincidence i discovered that ctrl^c+SHIFT _does_ terminate an application for me (i ran ConEmu + powershell core). Does that work for you too with ConEmu+cmd or ConEmu+farmanager?
Yes, the behavior is more consistent with recent Wine and the only difference between Windows and Wine is just this in ConEmu: Ctrl+c shows "c" and Ctrl+C (c with shift key) actually terminates the command/application.
There is another difference that Ctrl+c terminates cmd instead of clearing prompt line, but that is bug 27605.
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Roman Pišl from comment #3)
@Roman: By pure coincidence i discovered that ctrl^c+SHIFT _does_ terminate an application for me (i ran ConEmu + powershell core). Does that work for you too with ConEmu+cmd or ConEmu+farmanager?
Yes, the behavior is more consistent with recent Wine and the only difference between Windows and Wine is just this in ConEmu: Ctrl+c shows "c" and Ctrl+C (c with shift key) actually terminates the command/application.
There is another difference that Ctrl+c terminates cmd instead of clearing prompt line, but that is bug 27605.
Ok, maybe send patch in after code freeze? Better then let it rest here for years ;)
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- BTW, just wondering: what happens on windows when you do ctrl^c+SHIFT? Does it do the same as just ctrl^c?
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #6 from Roman Pišl rpisl@seznam.cz --- (In reply to Louis Lenders from comment #5)
BTW, just wondering: what happens on windows when you do ctrl^c+SHIFT? Does it do the same as just ctrl^c?
That just shows ^C, see my first comment.
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #7 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Roman Pišl from comment #6)
(In reply to Louis Lenders from comment #5)
BTW, just wondering: what happens on windows when you do ctrl^c+SHIFT? Does it do the same as just ctrl^c?
That just shows ^C, see my first comment.
OK,wouldn`t it be right way to just change the capital 'C' in records[i].Event.KeyEvent.uChar.UnicodeChar == 'C' - 64 into a lower-case, instead of the 'or' statement in your patch ?
https://bugs.winehq.org/show_bug.cgi?id=48758
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #8 from Jacek Caban jacek@codeweavers.com --- Created attachment 71457 --> https://bugs.winehq.org/attachment.cgi?id=71457 fix for shift
The attached patch should fix the problem with ctrl+shift+c.
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #9 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Jacek Caban from comment #8)
Created attachment 71457 [details] fix for shift
The attached patch should fix the problem with ctrl+shift+c.
Hi Jacek, thanks for jumping in
Unfortunately, with your patch both ctrl^c and ctrl^c+SHIFT do not terminate the command any more :(
https://bugs.winehq.org/show_bug.cgi?id=48758
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #66673|0 |1 is obsolete| | Attachment #71457|0 |1 is obsolete| |
--- Comment #10 from Jacek Caban jacek@codeweavers.com --- Created attachment 71459 --> https://bugs.winehq.org/attachment.cgi?id=71459 fix
Yes, it is the right behavior when shift is pressed and that what the patch fixes. Anyway, the attached version also fixes ctrl+c.
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #11 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Jacek Caban from comment #10)
Created attachment 71459 [details] fix
Yes, it is the right behavior when shift is pressed and that what the patch fixes. Anyway, the attached version also fixes ctrl+c.
Yes, I can confirm the patch works ok! Thanks for it!; I guess this will be sent after code freeze?
Regards
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #12 from Roman Pišl rpisl@seznam.cz --- I can also confirm that the patch works. But there is still a difference: on Wine, pressing ctrl moves cursor one line up and then "c" is printed on the console. This does not happen on Windows. Tested with a console application started from Far Manager running in Conemu.
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #13 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi Jacek,
Any chance you send in the patch for this bug ( https://bugs.winehq.org/attachment.cgi?id=71459&action=diff&context=... ), or did you forget about it?
Thanks in advance
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #14 from Jacek Caban jacek@codeweavers.com --- The patch is not really ready yet, it would be interesting to try to write a test for it.
https://bugs.winehq.org/show_bug.cgi?id=48758
--- Comment #15 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Jacek Caban from comment #14)
The patch is not really ready yet, it would be interesting to try to write a test for it.
Hi, thanks for the answer. I`ll be patient then.