View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003138 | Far Manager | Command Line/Execute | public | 2015-12-20 07:57 | 2019-02-22 08:06 |
Reporter | theultramage | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | reopened | ||
Platform | x64 | OS | Windows | OS Version | 7 |
Product Version | 3.0 | ||||
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 | ||||
Tags | Console | ||||
Build | 0 | ||||
|
So?... 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? |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-12-20 07:57 | theultramage | New Issue | |
2015-12-20 08:26 | DrKnS | Note Added: 0014150 | |
2015-12-20 08:26 | DrKnS | Build | => 0 |
2015-12-20 08:26 | DrKnS | Status | new => closed |
2015-12-20 08:26 | DrKnS | Resolution | open => no change required |
2015-12-20 08:34 | theultramage | Note Added: 0014151 | |
2015-12-20 08:34 | theultramage | Status | closed => feedback |
2015-12-20 08:34 | theultramage | Resolution | no change required => reopened |
2015-12-20 09:24 | DrKnS | Note Added: 0014152 | |
2019-02-22 07:35 | JohnDoe | Note Added: 0016462 | |
2019-02-22 07:39 | JohnDoe | Tag Attached: Console | |
2019-02-22 08:06 | DrKnS | Status | feedback => closed |