diff --git a/hotkeys.go b/hotkeys.go index e5506a6..cb4320a 100644 --- a/hotkeys.go +++ b/hotkeys.go @@ -1,5 +1,7 @@ package main +import "fmt" + func handleHotkey(k byte) { switch k { case 'l': @@ -210,6 +212,14 @@ func handleHotkey(k byte) { log.Error("can't change agc: ", err) } } + case '\n': + if statusLog.isRealtime() { + statusLog.mutex.Lock() + statusLog.clearInternal() + fmt.Println() + statusLog.mutex.Unlock() + statusLog.print() + } case 'q': quitChan <- true }