summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-04 12:18:10 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 16:02:18 -0500
commita11ceeb5b697114a3ec2a0436d4615e2385be4c2 (patch)
tree637c24b0fac16d6241568ab37a96b7c469ca38e0
parent988799b3a509b68680a412c2aeaad56eeb53307c (diff)
improve debug window
-rw-r--r--client/debug_window.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/debug_window.go b/client/debug_window.go
index c45198d..7be435f 100644
--- a/client/debug_window.go
+++ b/client/debug_window.go
@@ -71,12 +71,19 @@ func (dw *debugWindow) Send(text string) {
if err != nil {
globalApp.cmdWindow.err("that is not a valid protocol line!")
} else {
+ dw.OnLine(line, true)
dw.sendChan <- line
lastIndex++
}
dw.In.SetText("")
}
+func (dw *debugWindow) ShowStatusLine() {
+ tui.Text("enter protocol line:", &tui.Style {
+ Bg: tui.White, Fg: tui.Black, Italic: true,
+ })
+}
+
func (dw *debugWindow) Kill() {
globalApp.Debug(nil)
}