Add support for entering empty lines if the realtime status bar is active

This commit is contained in:
Nonoo 2020-11-05 20:25:00 +01:00
parent b5655d3284
commit 47a882b6d7

View file

@ -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
}