Blob


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