Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var App = cview.NewApplication().EnableMouse(false).SetRoot(layout, true)
Functions ¶
func CloseTab ¶
func CloseTab()
CloseTab closes the current tab and switches to the one to its left.
func Input ¶
Input pulls up a modal that asks for input, and returns the user's input. It returns an bool indicating if the user chose to send input or not.
func NewTab ¶
func NewTab()
NewTab opens a new tab and switches to it, displaying the the default empty content because there's no URL.
func Stop ¶
func Stop()
Stop stops the app gracefully. In the future it will handle things like ongoing downloads, etc
func SwitchTab ¶
func SwitchTab(tab int)
SwitchTab switches to a specific tab, using its number, 0-indexed. The tab numbers are clamped to the end, so for example numbers like -5 and 1000 are still valid. This means that calling something like SwitchTab(curTab - 1) will never cause an error.
Types ¶
This section is empty.