You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The standard handles of a process may be redirected by a call to SetStdHandle, in which case GetStdHandle returns the redirected handle. If the standard handles have been redirected, you can specify the CONIN$ value in a call to the CreateFile function to get a handle to a console's input buffer. Similarly, you can specify the CONOUT$ value to get a handle to a console's active screen buffer. https://docs.microsoft.com/en-us/windows/console/getstdhandle
If this is the case it could be handled by oppening CONINCONOUT. (I am not sure though how SetConsoleMode will work on such handles).
But my point is if GetConsoleMode fails maybe it'd better to return error in newMaster?
possibly fixed by #66 and #67 ?
these have been in review for 4 months now. Is there any way for the pr's to be implemented?
upstream dependencies essentially breaks windows terminal when piping output or setting variables from console commands.
Hey there,
Frankly good designed library.
Specifically I am not aware how
golang
std
works but if it gets its streams usingGetStdHandle
GetConsoleMode
will fail if a stream was redirected.https://stackoverflow.com/questions/33476316/win32-getconsolemode-error-code-6
If this is the case it could be handled by oppening
CONIN
CONOUT
. (I am not sure though howSetConsoleMode
will work on such handles).But my point is if
GetConsoleMode
fails maybe it'd better to return error innewMaster
?console/console_windows.go
Lines 32 to 67 in 05dadd9
Thank you.
The text was updated successfully, but these errors were encountered: