Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CurrentTab *tab
CurrentTab is the currently active tab in the TTY browser
var (
IsConnectedToWebExtension = false
)
var ( // IsMonochromeMode decides whether to render the TTY in full colour or monochrome IsMonochromeMode = false )
var ( // IsTesting is used in tests, so it needs to be exported IsTesting = false )
var Tabs = make(map[int]*tab)
Tabs is a map of all tab data
Functions ¶
func HTTPServerStart ¶
func HTTPServerStart()
HTTPServerStart starts the HTTP server is a seperate service from the usual interactive TTY app. It accepts normal HTTP requests and uses the path portion of the URL as the entry to the Browsh URL bar. It then returns a simple line-broken text version of whatever the browser loads. So for example, if you request `curl browsh-http-service.com/http://something.com`, it will return: `Something `
func MainEntry ¶
func MainEntry()
MainEntry decides between running Browsh as a CLI app or as an HTTP web server
func Shutdown ¶
func Shutdown(err error)
Shutdown tries its best to cleanly shutdown browsh and the associated browser
func StartFirefox ¶ added in v1.5.1
func StartFirefox()
Types ¶
This section is empty.