Set inputView title when out of chat
This commit is contained in:
@ -17,5 +17,6 @@ func cmdStream(cmd []string) {
|
|||||||
stream = true
|
stream = true
|
||||||
channel.Name = ""
|
channel.Name = ""
|
||||||
printToView("Feed", "You are now viewing the formatted stream")
|
printToView("Feed", "You are now viewing the formatted stream")
|
||||||
|
viewTitle("Input", " Not in a chat /j to join ")
|
||||||
clearView("Chat")
|
clearView("Chat")
|
||||||
}
|
}
|
||||||
|
|||||||
1
main.go
1
main.go
@ -265,6 +265,7 @@ func layout(g *gocui.Gui) error {
|
|||||||
}
|
}
|
||||||
inputView.Editable = true
|
inputView.Editable = true
|
||||||
inputView.Wrap = true
|
inputView.Wrap = true
|
||||||
|
inputView.Title = " Not in a chat /j to join"
|
||||||
g.Cursor = true
|
g.Cursor = true
|
||||||
}
|
}
|
||||||
if listView, err4 := g.SetView("List", 0, 0, maxX/2-maxX/3-1, maxY-1); err4 != nil {
|
if listView, err4 := g.SetView("List", 0, 0, maxX/2-maxX/3-1, maxY-1); err4 != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user