| 1 | package vaxisscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ |
| 2 | |
| 3 | // Event is an empty interface used to pass data within a Vaxis application. |
| 4 | // Vaxis will emit user input events as well as other input-related events. |
| 5 | // Users can use PostEvent to post their own events into the loop |
| 6 | type Eventscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Event# interface{} |
| 7 | |
| 8 | type ( |
| 9 | primaryDeviceAttributescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/primaryDeviceAttribute# struct{} |
| 10 | capabilitySixelscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/capabilitySixel# struct{} |
| 11 | capabilityOsc4scip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/capabilityOsc4# struct{} |
| 12 | capabilityOsc10scip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/capabilityOsc10# struct{} |
| 13 | capabilityOsc11scip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/capabilityOsc11# struct{} |
| 14 | synchronizedUpdatesscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/synchronizedUpdates# struct{} |
| 15 | unicodeCoreCapscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/unicodeCoreCap# struct{} |
| 16 | kittyKeyboardscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/kittyKeyboard# struct{} |
| 17 | kittyGraphicsscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/kittyGraphics# struct{} |
| 18 | styledUnderlinesscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/styledUnderlines# struct{} |
| 19 | truecolorscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/truecolor# struct{} |
| 20 | notifyColorChangescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/notifyColorChange# struct{} |
| 21 | textAreaPixscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/textAreaPix# struct{} |
| 22 | textAreaCharscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/textAreaChar# struct{} |
| 23 | inBandResizeEventsscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/inBandResizeEvents# struct{} |
| 24 | capabilitySgrPixelsscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/capabilitySgrPixels# struct{} |
| 25 | appIDscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/appID# string |
| 26 | terminalIDscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/terminalID# string |
| 27 | ) |
| 28 | |
| 29 | // Resize is delivered whenever a window size change is detected (likely via |
| 30 | // SIGWINCH) |
| 31 | type Resizescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Resize# struct { |
| 32 | Colsscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Resize#Cols. int |
| 33 | Rowsscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Resize#Rows. int |
| 34 | XPixelscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Resize#XPixel. int |
| 35 | YPixelscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Resize#YPixel. int |
| 36 | } |
| 37 | |
| 38 | // PasteStartEvent is sent at the beginning of a bracketed paste. Each [Key] |
| 39 | // within the paste will also have the EventPaste set as the EventType |
| 40 | type PasteStartEventscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/PasteStartEvent# struct{} |
| 41 | |
| 42 | // PasteEndEvent is sent at the end of a bracketed paste. Each [Key] |
| 43 | // within the paste will also have the EventPaste set as the EventType |
| 44 | type PasteEndEventscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/PasteEndEvent# struct{} |
| 45 | |
| 46 | // FocusIn is sent when the terminal has gained focus |
| 47 | type FocusInscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/FocusIn# struct{} |
| 48 | |
| 49 | // FocusOut is sent when the terminal has lost focus |
| 50 | type FocusOutscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/FocusOut# struct{} |
| 51 | |
| 52 | // Redraw is a generic event which can be sent to the host application to tell |
| 53 | // it some update has occurred it may not know about otherwise and it must |
| 54 | // redraw. These are always issued after a SyncFunc has been called |
| 55 | type Redrawscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/Redraw# struct{} |
| 56 | |
| 57 | // SyncFunc is a function which must be called in the main thread. Applications |
| 58 | // should check for SyncFunc events, and when one is found it is safe to call. |
| 59 | // Applications should assume that a redraw must occur after a SyncFunc |
| 60 | type SyncFuncscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/SyncFunc# func() |
| 61 | |
| 62 | // QuitEvent is sent when the application is closing. It is emitted when the |
| 63 | // application calls vaxis.Close, and often times won't be seen by the |
| 64 | // application. |
| 65 | type QuitEventscip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/QuitEvent# struct{} |
| 66 | |
| 67 | // ColorThemeMode is the current color theme of the terminal. The raw value is |
| 68 | // equivalent to the DSR response value for each mode. |
| 69 | type ColorThemeModescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ColorThemeMode# int |
| 70 | |
| 71 | const ( |
| 72 | // The terminal has a dark color theme |
| 73 | DarkModescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/DarkMode. ColorThemeModescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ColorThemeMode# = 1 |
| 74 | // The terminal has a light color theme |
| 75 | LightModescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/LightMode. ColorThemeModescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ColorThemeMode# = 2 |
| 76 | ) |
| 77 | |
| 78 | // ColorThemeUpdate is sent when the terminal color scheme has changed. This |
| 79 | // event is only delivered if supported by the terminal |
| 80 | type ColorThemeUpdatescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ColorThemeUpdate# struct { |
| 81 | Modescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ColorThemeUpdate#Mode. ColorThemeModescip-go gomod git.sr.ht/~rockorager/vaxis . `git.sr.ht/~rockorager/vaxis`/ColorThemeMode# |
| 82 | } |