-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(term): move conpty out of windows (#43)
* refactor(term): move conpty out of windows To match golang/sys, the windows package should contain Windows specific API calls. The conpty package is a high-level package that creates and manages ConPty sessions, and thus wouldn't make sense to keep it under windows. * Update exp/term/conpty/conpty_other.go
- Loading branch information
1 parent
03ee51d
commit 0e636b3
Showing
4 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package conpty | ||
|
||
// ConPty represents a Windows Console Pseudo-terminal. | ||
// https://learn.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session#preparing-the-communication-channels | ||
type ConPty struct{} | ||
|
||
// New creates a new ConPty. | ||
// This function is not supported on non-Windows platforms. | ||
func New(int, int, int) (*ConPty, error) { | ||
return nil, ErrUnsupported | ||
} |
File renamed without changes.
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
File renamed without changes.