Light renderer
| 109 | |
| 110 | // Light renderer |
| 111 | type LightRenderer struct { |
| 112 | theme *ColorTheme |
| 113 | mouse bool |
| 114 | forceBlack bool |
| 115 | clearOnExit bool |
| 116 | prevDownTime time.Time |
| 117 | clicks [][2]int |
| 118 | ttyin *os.File |
| 119 | ttyout *os.File |
| 120 | cancel func() |
| 121 | buffer []byte |
| 122 | origState *term.State |
| 123 | width int |
| 124 | height int |
| 125 | yoffset int |
| 126 | tabstop int |
| 127 | escDelay int |
| 128 | fullscreen bool |
| 129 | upOneLine bool |
| 130 | queued strings.Builder |
| 131 | y int |
| 132 | x int |
| 133 | maxHeightFunc func(int) int |
| 134 | showCursor bool |
| 135 | mutex sync.Mutex |
| 136 | |
| 137 | // Windows only |
| 138 | ttyinChannel chan byte |
| 139 | inHandle uintptr |
| 140 | outHandle uintptr |
| 141 | origStateInput uint32 |
| 142 | origStateOutput uint32 |
| 143 | } |
| 144 | |
| 145 | type LightWindow struct { |
| 146 | renderer *LightRenderer |
nothing calls this directly
no outgoing calls
no test coverage detected