View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003138||Far Manager||Command Line/Execute||public||2015-12-20 10:57||2019-02-22 11:06|
|Target Version||Fixed in Version|
|Summary||0003138: unable to stop the beeping after accidentally dumping a binary file into the console|
|Description||Sometimes I accidentally run a command that echoes the contents of a large binary file into the Far Manager console. In text mode, the byte value 0x07 is interpreted as a 'beep' character, and there are a lot of them. While this is happening, the Far window stops responding, so I can't use Ctrl+C to make it stop. I have to stop the program and start a new instance.|
|Steps To Reproduce||fc.exe kernel32.dll user32.dll|
Far doesn't beep itself, console host does.
You can type "net stop beep" or "sc stop beep" in elevated console to stop that.
The point is not the beeping, the point is that Far becomes unresponsive while it's happening. If I echo a 50-meg text file, I can ctrl-c out of it at any time. I suggest checking if there isn't some trivial way to mitigate this, say for example some winapi toggle. This is a super-ancient issue so I assume programmers using the windows console must have already figured it out.
PS: Beep is a non-PnP device driver, does not like being told to stop, and requires a reboot to make it work again. I do confirm that it is possible to ctrl-c while the driver is disabled.
Yes, there is a flag of SetConsoleMode function, ENABLE_PROCESSED_OUTPUT:
But it makes no difference for us: when you do "type binary.exe" it's processed by cmd.exe, which sets its own mode (including the flag above) anyway.
||Shouldn't we close this issue?|
|2015-12-20 10:57||theultramage||New Issue|
|2015-12-20 11:26||DrKnS||Note Added: 0014150|
|2015-12-20 11:26||DrKnS||Build||=> 0|
|2015-12-20 11:26||DrKnS||Status||new => closed|
|2015-12-20 11:26||DrKnS||Resolution||open => no change required|
|2015-12-20 11:34||theultramage||Note Added: 0014151|
|2015-12-20 11:34||theultramage||Status||closed => feedback|
|2015-12-20 11:34||theultramage||Resolution||no change required => reopened|
|2015-12-20 12:24||DrKnS||Note Added: 0014152|
|2019-02-22 10:35||JohnDoe||Note Added: 0016462|
|2019-02-22 10:39||JohnDoe||Tag Attached: Console|
|2019-02-22 11:06||DrKnS||Status||feedback => closed|