From 80ecb530d469b8842c15626a53479705a59c5e59 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 9 Oct 2019 12:14:25 -0400 Subject: [PATCH] Set inputView title when out of chat --- cmdStream.go | 1 + main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmdStream.go b/cmdStream.go index 9b60920..cbfc0ba 100644 --- a/cmdStream.go +++ b/cmdStream.go @@ -17,5 +17,6 @@ func cmdStream(cmd []string) { stream = true channel.Name = "" printToView("Feed", "You are now viewing the formatted stream") + viewTitle("Input", " Not in a chat /j to join ") clearView("Chat") } diff --git a/main.go b/main.go index f83efb6..eb72da6 100644 --- a/main.go +++ b/main.go @@ -265,6 +265,7 @@ func layout(g *gocui.Gui) error { } inputView.Editable = true inputView.Wrap = true + inputView.Title = " Not in a chat /j to join" g.Cursor = true } if listView, err4 := g.SetView("List", 0, 0, maxX/2-maxX/3-1, maxY-1); err4 != nil {