Skip to content

Commit 8900f45

Browse files
committed
added sources
1 parent f2509fb commit 8900f45

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

windows/input_record.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package windows
22

33
// InputRecord is the data structure that ReadConsoleInput writes into.
4-
// See: https://docs.microsoft.com/en-us/windows/console/input-record-str
4+
// Original source: https://docs.microsoft.com/en-us/windows/console/input-record-str
55
type InputRecord struct {
6-
// Original source: https://docs.microsoft.com/en-us/windows/console/input-record-str#members
76
// 0x1: Key event
87
// 0x2: Will never be read when using ReadConsoleInput
98
// 0x4: Window buffer size event
109
// 0x8: Deprecated
1110
// 0x10: Deprecated
11+
// Original source: https://docs.microsoft.com/en-us/windows/console/input-record-str#members
1212
Type uint16
1313
_ [2]byte // discard the next two bytes
1414

@@ -19,11 +19,12 @@ type InputRecord struct {
1919
// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
2020
// - Event[5] is the ascii or Unicode keycode.
2121
// - Event[6] stores the state of the modifier keys.
22-
// See https://docs.microsoft.com/en-us/windows/console/key-event-record-str
22+
// Original source: https://docs.microsoft.com/en-us/windows/console/key-event-record-str
2323
//
2424
// WINDOW_BUFFER_SIZE_EVENT (TYPE == 4)
2525
// - Event[0] is the new amount of character rows
2626
// - Event[1] is the new amount of character columns
27+
// Original source: https://docs.microsoft.com/en-us/windows/console/window-buffer-size-record-str
2728
Event [6]uint16
2829
}
2930

windows/zsyscall_windows.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)