DisplayHeader translates the header, bolds and adds the default color to the header, and outputs the result to ui.Out.
(text string)
| 217 | // DisplayHeader translates the header, bolds and adds the default color to the |
| 218 | // header, and outputs the result to ui.Out. |
| 219 | func (ui *UI) DisplayHeader(text string) { |
| 220 | ui.terminalLock.Lock() |
| 221 | defer ui.terminalLock.Unlock() |
| 222 | |
| 223 | fmt.Fprintf(ui.Out, "%s\n", ui.modifyColor(ui.TranslateText(text), color.New(color.Bold))) |
| 224 | } |
| 225 | |
| 226 | // DisplayNewline outputs a newline to UI.Out. |
| 227 | func (ui *UI) DisplayNewline() { |
nothing calls this directly
no test coverage detected