(height int, info string)
| 48 | } |
| 49 | |
| 50 | func (ke *KeyboardError) printError(height int, info string) { |
| 51 | if ke.shouldDisplay() { |
| 52 | errMessage := ke.err.Error() |
| 53 | |
| 54 | moveCursor(height-1-extraLines(info)-extraLines(errMessage), 0) |
| 55 | clearLine() |
| 56 | |
| 57 | fmt.Print(errMessage) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func (ke *KeyboardError) addError(prefix string, err error) { |
| 62 | ke.timeStart = time.Now() |
no test coverage detected