Closed revam closed 8 months ago
Added another commit that fixes division by zero when the display width is 0
for whatever reason. This was only an issue when running it in a sub-process on linux, not on windows, and only on some systems, not all.
Running
AVDump3CL.exe
on Windows in a sub-process with output redirection currently leads to AVDump3 erring out every time it tries to manipulate the cursor since the cursor manipulation on Windows uses WinAPIs and requires a console window to function, which is not available for sub-process ran in C# with output redirection enabled. I'll also note that this is not a problem on linux, just on windows.This PR fixes the issue by just not trying to manipulate the cursor position if we cannot manipulate the cursor checking the pre-existing
canManipulateCursor
property before trying to do any cursor manipulation in the console class.The error that is repeated over and over on standard output;