hbro-0.6.1: A suckless minimal KISSy browser

Safe HaskellNone

Hbro.Core

Synopsis

Documentation

realMain :: Configuration -> IO ()Source

Entry point of the application. Parse arguments and step down in favour of initBrowser. Print configuration error, if any.

initBrowser :: Configuration -> CliOptions -> IO ()Source

Application's main function. Create browser and load homepage.

goHome :: Browser -> IO ()Source

Load homepage (retrieved from commandline options or configuration file)

stopLoading :: Browser -> IO ()Source

Wrapper around webViewStopLoading function

goForward :: Browser -> IO ()Source

Wrapper around webViewGoForward function

goBack :: Browser -> IO ()Source

Wrapper around webViewGoBack function

reload :: Bool -> Browser -> IO ()Source

Wrapper around webViewReload{BypassCache} If boolean argument is False, it bypasses the cache

zoomIn :: Browser -> IO ()Source

Wrapper around webViewZoomIn function

zoomOut :: Browser -> IO ()Source

Wrapper around webViewZoomOut function

printPage :: Browser -> IO ()Source

Wrapper around webFramePrint function

loadURL :: String -> Browser -> IO ()Source

Load given URL in the browser.

loadURL' :: URL -> Browser -> IO ()Source

Backend function for loadURL.

newWindow :: Browser -> IO ()Source

Spawn a new instance of the browser