MCPcopy
hub / github.com/docker/compose / printNavigationMenu

Method printNavigationMenu

cmd/formatter/shortcut.go:146–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (lk *LogKeyboard) printNavigationMenu() {
147 offset := 1
148 lk.clearNavigationMenu()
149 lk.createBuffer(offset)
150
151 if lk.logLevel == INFO {
152 height := goterm.Height()
153 menu := lk.navigationMenu()
154
155 carriageReturn()
156 saveCursor()
157
158 lk.kError.printError(height, menu)
159
160 moveCursor(height-extraLines(menu), 0)
161 clearLine()
162 fmt.Print(menu)
163
164 carriageReturn()
165 restoreCursor()
166 }
167}
168
169func (lk *LogKeyboard) navigationMenu() string {
170 var items []string

Callers 3

PrintKeyboardInfoMethod · 0.95
keyboardErrorMethod · 0.95
HandleKeyEventsMethod · 0.95

Calls 10

clearNavigationMenuMethod · 0.95
createBufferMethod · 0.95
navigationMenuMethod · 0.95
carriageReturnFunction · 0.85
saveCursorFunction · 0.85
moveCursorFunction · 0.85
extraLinesFunction · 0.85
clearLineFunction · 0.85
restoreCursorFunction · 0.85
printErrorMethod · 0.80

Tested by

no test coverage detected