TUN-3333: Add text to UI explaining how to exit
This commit is contained in:
parent
bb530b87dd
commit
250bc54110
|
@ -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)
|
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 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)
|
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)
|
grid.AddItem(logFrame, 4, 0, 5, 2, 0, 0, false)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue