https://bugs.winehq.org/show_bug.cgi?id=57468
Bug ID: 57468 Summary: 0124:fixme:console:write_console beep Product: Wine Version: 9.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: megastallman@gmail.com Distribution: ---
Hi guys! Thanks much for all fixes you've done for Cygwin. Currently the installer runs till the very end, without any errors! So, when I run "wine cygwin64/bin/bash.exe -l" it works, just drops "0124:fixme:console:write_console beep" at the end of every command. For instance:
$ uname -a CYGWIN_NT-10.0-19043 localhost 3.5.4-1.x86_64 2024-08-25 16:52 UTC x86_64 Cygwin 021c:fixme:console:write_console beep
https://bugs.winehq.org/show_bug.cgi?id=57468
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com
--- Comment #1 from Eric Pouech eric.pouech@gmail.com --- do you have any specific settings in your prompt? like colors or ANSI sequences? (anything that would contain a '\a'? character)
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #2 from megastallman megastallman@gmail.com --- (In reply to Eric Pouech from comment #1)
do you have any specific settings in your prompt? like colors or ANSI sequences? (anything that would contain a '\a'? character)
Hi Eric! Yeah, I have '\a' in my PS1 === $ echo $PS1 [\e]0;\u@\h: \w\a]${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ ===
I have also tried to === $ export PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$' ===
but still getting === LOCALHOST+metaldoctor@localhost ~ $ ls Wine 0120:fixme:console:write_console beep
=== as you may see, there is also a newline after the message.
These PS1 parameters are default for Kubuntu 24.04.
I have also tried Wineconsole, it has some unprintable characters prepended and appended to the output.
So, both terminals are broken. Also, no way to operate mc, links, lynx, vim, nano. All pseudographics gets mangled and some keys work differently(can't quit by :q! in vim).
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #3 from megastallman megastallman@gmail.com --- Same for $export PS1=' $ '
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #4 from megastallman megastallman@gmail.com --- Here is my Wineconsole: https://ibb.co/3CwDRZz
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #5 from Eric Pouech eric.pouech@gmail.com --- Thanks for the details
part of this issue is what's described in https://bugs.winehq.org/show_bug.cgi?id=49780 (missing support for various escape sequences)
but I would have expected (as you tried) that PS1='' fully fixes it, which it doesn't so there's likely something else can you post the output with WINEDEBUG=+console?
TIA
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #6 from Eric Pouech eric.pouech@gmail.com --- from looking at screenshot in #4, I don't see the 'beep' message after 'uname -a' do you get them from the unix console from where you started wineconsole?
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #7 from megastallman megastallman@gmail.com --- Created attachment 77489 --> https://bugs.winehq.org/attachment.cgi?id=77489 WINEDEBUG=+console
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #8 from megastallman megastallman@gmail.com --- Created attachment 77490 --> https://bugs.winehq.org/attachment.cgi?id=77490 bash -l
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #9 from megastallman megastallman@gmail.com --- (In reply to Eric Pouech from comment #6)
from looking at screenshot in #4, I don't see the 'beep' message after 'uname -a' do you get them from the unix console from where you started wineconsole?
Yeah, you are right. We've got 3 cases: 1) Wineconsole screenshot, running Cygwin.bat. It doesn't have 'write_console beep' message. Since I can't copy any text from there, I just made a screenshot. In the last message of bug 49780 Kolanich proposes to move to any other Unix terminal, as Konsole, that works generally better for me too, so that's about cases 2 and 3. 2) "nodebug" file contains my Konsole's Unix terminal output. 3) "winedebug" has "export WINEDEBUG=+console" set. In this mode Wine generates a huge amount of debug, so I've blindly pasted 3 "uname -a" lines, pressed Enter, pressed Ctrl+D to exit Wine, and saved the text. So lines 1,2,3 - are Unix, then we get Wine output, line 3355 is about 3 commands blindly pasted and the syscalls go next...
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #10 from megastallman megastallman@gmail.com --- Also, running Wineconsole from Konsole(Unix), I get the 'beep' message(2 bottom lines) https://ibb.co/ftcZx5M
https://bugs.winehq.org/show_bug.cgi?id=57468
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #11 from Eric Pouech eric.pouech@gmail.com --- from the log:
0024:trace:console:WriteConsoleW (0000000000000134,L"\001b]0;~\0007",6,0000000000000000,0000000000000000)
which is an OSC sequence meaning set console windows' title to "~" (and \0007 == '\a' == beep is in fact a terminator of the OSC sequence)
so this is something likely generated by Cygwin at some point, and fails of the missing support of various CSI, OSC... sequences in Wine so definitively a dupe of 49780 (hence marking this bug as such)
Note on your comments on the various console usages. There are several "properties" to consider: A) supports the Windows official escape sequences [1] B) supports the Unix escape sequences (usually library like ncurses hide discrepancies using generic names, translated into what the console actually supports) (some of these sequences are common with [1], some others are not) C) the console object behaves as a Windows one
Wine offers two different "consoles": - the one inherited from unix world (unix console) - a windows tailored one (windows console)
To make things simpler, the behavior of the Wine's "unix console" of course depends on the properties of the underlying real unix console (konsole, xterm...).
using "wine app.exe" triggers the unix console, while "wine wineconsole app.exe" triggers the windows console (conhost)
so the claim "moving to another unix console" will fix things simply states that the default sequences in B are closer to what's expected in A. But will **always** miss all the C properties (some can be present of course)
to shed some light on the C properties, one example among a lot of others: - you can programatically get the console windows' handle and send windows messages to that window - key strokes... - in Wine this is supported by the windows console, but not by the unix console
we could improve in Wine's unix console the mapping from A to B: - full support means (in ncurses terms): lookup from a sequence from Windows' console setting into generic form, and remap that generic form into the underlying unix terminal form - partial support (your use case): detect the OSC (so that the '\a' is not interpreted as a beep)
we could improve in Wine's windows console the support of A
[1] https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-s...
*** This bug has been marked as a duplicate of bug 49780 ***
https://bugs.winehq.org/show_bug.cgi?id=57468
--- Comment #12 from Eric Pouech eric.pouech@gmail.com --- (In reply to megastallman from comment #9)
Since I can't copy any text from there, I just
if you: - click right-mouse button inside wineconsole window - select in the menu: Edit -> Mark - you can the select an area (click & extend area with the mouse) - hit 'Enter' the area should be copied into the clipboard
https://bugs.winehq.org/show_bug.cgi?id=57468
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing duplicate.