forked from creack/pty
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96e45d8
commit 7f5c495
Showing
2 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ var ( | |
// the kernel32.dll is loaded from windows system path. | ||
// | ||
// Ref: https://pkg.go.dev/[email protected]?GOOS=windows#LoadDLL | ||
kernel32DLL = windows.NewLazyDLL("kernel32.dll") | ||
kernel32DLL = windows.NewLazySystemDLL("kernel32.dll") | ||
|
||
// https://docs.microsoft.com/en-us/windows/console/createpseudoconsole | ||
createPseudoConsole = kernel32DLL.NewProc("CreatePseudoConsole") | ||
|
@@ -138,8 +138,8 @@ func (p *WindowsPty) Close() error { | |
return err | ||
} | ||
|
||
func (t *WindowsPty) SetDeadline(value time.Time) error { | ||
return nil | ||
func (p *WindowsPty) SetDeadline(value time.Time) error { | ||
return os.ErrNoDeadline | ||
} | ||
|
||
func (t *WindowsTty) Name() string { | ||
|
@@ -164,7 +164,7 @@ func (t *WindowsTty) Close() error { | |
} | ||
|
||
func (t *WindowsTty) SetDeadline(value time.Time) error { | ||
return nil | ||
return os.ErrNoDeadline | ||
} | ||
|
||
func procCreatePseudoConsole(hInput windows.Handle, hOutput windows.Handle, dwFlags uint32, consoleHandle *windows.Handle) error { | ||
|