-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: windows: clean up and remove redundent code
- Loading branch information
1 parent
aceb3d8
commit 6428f6c
Showing
4 changed files
with
411 additions
and
637 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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package tea | ||
|
||
// ReadEvents reads input events from the terminal. | ||
// | ||
// It reads the events available in the input buffer and returns them. | ||
func (d *driver) ReadEvents() ([]Msg, error) { | ||
return d.readEvents() | ||
} | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package tea | ||
|
||
// ReadEvents reads input events from the terminal. | ||
// | ||
// It reads the events available in the input buffer and returns them. | ||
func (d *driver) ReadEvents() ([]Msg, error) { | ||
return d.readEvents() | ||
} | ||
|
||
// parseWin32InputKeyEvent parses a Win32 input key events. This function is | ||
// only available on Windows. | ||
func parseWin32InputKeyEvent(*win32InputState, uint16, uint16, rune, bool, uint32, uint16) Msg { | ||
return nil | ||
} |
Oops, something went wrong.