[Bug 48758] New: ConEmu Ctrl+c has different behavior
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(a)winehq.org Reporter: rpisl(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 Roman Pišl <rpisl(a)seznam.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://conemu.github.io/ CC| |rpisl(a)seznam.cz Keywords| |download -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #1 from Roman Pišl <rpisl(a)seznam.cz> --- Created attachment 66673 --> https://bugs.winehq.org/attachment.cgi?id=66673 Fix This fix is good enough for my use case. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |fgouget(a)codeweavers.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |xerox.xerox2000x(a)gmail.com --- Comment #2 from Louis Lenders <xerox.xerox2000x(a)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? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #3 from Roman Pišl <rpisl(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #4 from Louis Lenders <xerox.xerox2000x(a)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 ;) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #5 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- BTW, just wondering: what happens on windows when you do ctrl^c+SHIFT? Does it do the same as just ctrl^c? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #6 from Roman Pišl <rpisl(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #7 from Louis Lenders <xerox.xerox2000x(a)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 ? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek(a)codeweavers.com --- Comment #8 from Jacek Caban <jacek(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #9 from Louis Lenders <xerox.xerox2000x(a)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 :( -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #66673|0 |1 is obsolete| | Attachment #71457|0 |1 is obsolete| | --- Comment #10 from Jacek Caban <jacek(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #11 from Louis Lenders <xerox.xerox2000x(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #12 from Roman Pišl <rpisl(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #13 from Louis Lenders <xerox.xerox2000x(a)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=patch&co... ), or did you forget about it? Thanks in advance -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #14 from Jacek Caban <jacek(a)codeweavers.com> --- The patch is not really ready yet, it would be interesting to try to write a test for it. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48758 --- Comment #15 from Louis Lenders <xerox.xerox2000x(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla