-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No listing of error codes for SetConsoleCursorPosition #157
Comments
The only errors I can see coming out of that function are Are you seeing any other error than that? We generally haven't documented the specific errors out of these APIs because tracing the comprehensive set of errors from all APIs is virtually impossible. Also do note that you can see a lot of the logic behind these APIs by looking inside |
STATUS_INVALID_PARAMETER is what we were seeing, no issues there. This came up in kkawakam/rustyline#434 (which in turn was triggered by nushell/nushell#2440), where this call was causing the error in some terminals (Windows Terminal, Alacritty) but not others (cmd), and seemingly it shouldn't be happening at all. We couldn't figure out from the docs what specifically might cause this error to occur in a case where the inputs are ostensibly correct. |
The only way I could tell you which parameter was at fault or why would be to have a complete debugger state attached to the If you're using Windows Terminal, though, it will have Do you mind if I close this issue then? I don't think I can document my way to success on this one. |
No problem |
I'm currently trying to debug an FFI issue related to SetConsoleCursorPosition returning a certain error. However, it doesn't appear to be documented what possible errors can be returned from SetConsoleCursorPosition.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: