summaryrefslogtreecommitdiff
path: root/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'actions.go')
-rw-r--r--actions.go34
1 files changed, 34 insertions, 0 deletions
diff --git a/actions.go b/actions.go
index afb8289..c2dd934 100644
--- a/actions.go
+++ b/actions.go
@@ -37,6 +37,40 @@ var (
ErrInvalidTourArgs = errors.New("tour what?")
)
+func About(state *BrowserState) error {
+ _, err := fmt.Println(`
+ ...
+ *=:::.
+ ---======- -+-.....
+ .#@@@@@@@= .+=-:....:++
+ +@@@@@@@@# :-::.. ...*+
+ :%@@@@@@@@@. =*+++==:....
+ .*@@@@@@@@@@= -#%###**++-:..
+ -@@@@@@@@@@@% .::-=*#@@#*#@@@@@@@%-.
+ ..:::----=====++#@@@@@@@@@@@@%%%@@@@@@@@@@%%#**@@@@@@@=
+ .-+#%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-
+ =*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##%@@*%@@@@@@@@@@- ..
+ -+*. .#@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@%%%%###- =- .=.==----==--:...
+...:::::=#@@@@#**+*##@@@#*%%%%%%%%##############******+==-:-=-:.-==-:.. ...
+ .:.:-==++++====::-----::---:-+%@@@@@@@@@@@@@#-...
+ . ...............=@@@@@@@@@@@@@@+....
+ -@@@@@@@@@@@@@#.
+ -@@@@@@@@@@@@%-
+ -@@%%##@@@@@@=
+ =%++*=-=%@@@*.
+ =--*%%%::#@#:
+ *@+=#-+*%@%-
+ .*%****###@+.
+ ::..:::.::*@@@%%%%%#:
+
+x-1 is a browser for small web protocols gemini, gopher, finger, spartan, and nex.
+It also has very limited support for HTTP[S].
+
+It was written by TJP and released to the public domain.
+`[1:])
+ return err
+}
+
func Navigate(state *BrowserState, target *url.URL, navIndex int, conf *Config) error {
hist := state.History