TUN-3333: Add text to UI explaining how to exit

This commit is contained in:
Rachel Williams 2020-08-27 10:00:35 -07:00 committed by Areg Harutyunyan
parent bb530b87dd
commit 250bc54110
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ func (data *uiModel) LaunchUI(ctx context.Context, logger logger.Service, tunnel
logGrid := tview.NewGrid().SetBorders(true).AddItem(logTextView.SetChangedFunc(handleNewText(app, logTextView)), 0, 0, 5, 2, 0, 0, false)
// LogFrame holds the Logs header as well as the grid with the textView for streamed logs
logFrame := tview.NewFrame(logGrid).AddText("[::b]Logs:[::-]", true, tview.AlignLeft, tcell.ColorWhite).SetBorders(0, 0, 0, 0, 0, 0)
// Footer for log frame
logFrame.AddText("[::d]Use Ctrl+C to exit[::-]", false, tview.AlignRight, tcell.ColorWhite)
grid.AddItem(logFrame, 4, 0, 5, 2, 0, 0, false)
go func() {