webbrowser

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

README

package webbrowser

The code in this folder is adapted from Amfora, you can see the original here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(url string) (string, error)

Open opens `url` in default system browser. It tries to do so in two ways (xdg-open and $BROWSER). It only works if there is a display server working.

bouncepaw: I tried to support TTYs as well. The idea was to open a browser in foreground and return back to amfora after the browser is closed. While all browsers I tested opened correctly (w3m, lynx), I couldn't make it restore amfora correctly. The screen always ended up distorted. None of my stunts with altscreen buffers helped.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL