webbrowser

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

package webbrowser

The code in this folder is adapted from Bombadillo, you can see the original here. Many thanks to Sloum and the rest of the team!

The code is simple, and I have changed it, but in any case there should be no licensing issues because both repos are under GPL v3.

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