Blame


1 86395f5c 2021-03-02 op /*
2 86395f5c 2021-03-02 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 86395f5c 2021-03-02 op *
4 86395f5c 2021-03-02 op * Permission to use, copy, modify, and distribute this software for any
5 86395f5c 2021-03-02 op * purpose with or without fee is hereby granted, provided that the above
6 86395f5c 2021-03-02 op * copyright notice and this permission notice appear in all copies.
7 86395f5c 2021-03-02 op *
8 86395f5c 2021-03-02 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 86395f5c 2021-03-02 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 86395f5c 2021-03-02 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 86395f5c 2021-03-02 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 86395f5c 2021-03-02 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 86395f5c 2021-03-02 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 86395f5c 2021-03-02 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 86395f5c 2021-03-02 op */
16 86395f5c 2021-03-02 op
17 86395f5c 2021-03-02 op #include <telescope.h>
18 86395f5c 2021-03-02 op
19 86395f5c 2021-03-02 op #define ASCII_ART \
20 86395f5c 2021-03-02 op "```An Ascii art of the word \"Telescope\"\n" \
21 86395f5c 2021-03-02 op " _______ __\n" \
22 86395f5c 2021-03-02 op "|_ _|.-----.| |.-----.-----.----.-----.-----.-----.\n" \
23 86395f5c 2021-03-02 op " | | | -__|| || -__|__ --| __| _ | _ | -__|\n" \
24 86395f5c 2021-03-02 op " |___| |_____||__||_____|_____|____|_____| __|_____|\n" \
25 86395f5c 2021-03-02 op " |__|\n" \
26 86395f5c 2021-03-02 op "```\n"
27 86395f5c 2021-03-02 op
28 81ea92ab 2021-03-08 op #define CIRCUMLUNAR_SPACE "gemini://gemini.circumlunar.space"
29 81ea92ab 2021-03-08 op
30 86395f5c 2021-03-02 op const char *about_new =
31 86395f5c 2021-03-02 op ASCII_ART
32 86395f5c 2021-03-02 op "\n"
33 81ea92ab 2021-03-08 op "=> " CIRCUMLUNAR_SPACE "/docs Gemini documentation\n"
34 81ea92ab 2021-03-08 op "=> " CIRCUMLUNAR_SPACE "/software Gemini software\n"
35 81ea92ab 2021-03-08 op "\n"
36 81ea92ab 2021-03-08 op "=> gemini://gus.guru/ Gemini Universal Search engine\n"
37 81ea92ab 2021-03-08 op "=> gemini://houston.coder.town/ Houston search engine\n"
38 81ea92ab 2021-03-08 op "\n"
39 86395f5c 2021-03-02 op "Version: " VERSION "\n"
40 86395f5c 2021-03-02 op "Bug reports to: " PACKAGE_BUGREPORT "\n"
41 86395f5c 2021-03-02 op "=> " PACKAGE_URL " Telescope Gemini site: " PACKAGE_URL "\n"
42 86395f5c 2021-03-02 op ;
43 0972d8b2 2021-03-02 op
44 5cd2ebb1 2021-03-11 op /* XXX: keep in sync with telescope.c:/^normalize_code/ */
45 0972d8b2 2021-03-02 op const char *err_pages[70] = {
46 0972d8b2 2021-03-02 op [CANNOT_FETCH] = "# Couldn't load the page\n",
47 0972d8b2 2021-03-02 op [TOO_MUCH_REDIRECTS] = "# Too much redirects\n",
48 5cd2ebb1 2021-03-11 op [MALFORMED_RESPONSE] = "# Got a malformed response\n",
49 c07ac996 2021-03-12 op [UNKNOWN_TYPE_OR_CSET] = "# Unsupported type or charset\n",
50 0972d8b2 2021-03-02 op
51 5cd2ebb1 2021-03-11 op [10] = "# Input required\n",
52 5cd2ebb1 2021-03-11 op [11] = "# Input required\n",
53 0972d8b2 2021-03-02 op [40] = "# Temporary failure\n",
54 0972d8b2 2021-03-02 op [41] = "# Server unavailable\n",
55 0972d8b2 2021-03-02 op [42] = "# CGI error\n",
56 0972d8b2 2021-03-02 op [43] = "# Proxy error\n",
57 0972d8b2 2021-03-02 op [44] = "# Slow down\n",
58 0972d8b2 2021-03-02 op [50] = "# Permanent failure\n",
59 0972d8b2 2021-03-02 op [51] = "# Not found\n",
60 0972d8b2 2021-03-02 op [52] = "# Gone\n",
61 0972d8b2 2021-03-02 op [53] = "# Proxy request refused\n",
62 0972d8b2 2021-03-02 op [59] = "# Bad request\n",
63 0972d8b2 2021-03-02 op [60] = "# Client certificate required\n",
64 0972d8b2 2021-03-02 op [61] = "# Certificate not authorised\n",
65 0972d8b2 2021-03-02 op [62] = "# Certificate not valid\n"
66 0972d8b2 2021-03-02 op };