From 47a882b6d7aa020667e52906c94db556f44d00f4 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Thu, 5 Nov 2020 20:25:00 +0100 Subject: [PATCH] Add support for entering empty lines if the realtime status bar is active --- hotkeys.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 }