2 * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
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.
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.
17 #include <telescope.h>
20 "```An Ascii art of the word \"Telescope\"\n" \
22 "|_ _|.-----.| |.-----.-----.----.-----.-----.-----.\n" \
23 " | | | -__|| || -__|__ --| __| _ | _ | -__|\n" \
24 " |___| |_____||__||_____|_____|____|_____| __|_____|\n" \
28 #define CIRCUMLUNAR_SPACE "gemini://gemini.circumlunar.space"
30 const char *about_new =
33 "=> " CIRCUMLUNAR_SPACE "/docs Gemini documentation\n"
34 "=> " CIRCUMLUNAR_SPACE "/software Gemini software\n"
36 "=> gemini://gus.guru/ Gemini Universal Search engine\n"
37 "=> gemini://houston.coder.town/ Houston search engine\n"
39 "Version: " VERSION "\n"
40 "Bug reports to: " PACKAGE_BUGREPORT "\n"
41 "=> " PACKAGE_URL " Telescope Gemini site: " PACKAGE_URL "\n"
45 "Id dolore aperiam voluptatem libero eaque omnis rerum nulla. Ullam sit voluptate accusamus molestiae enim minus. Fugit sequi quam dignissimos. Odio inventore vel sed. Voluptatem aut magni dignissimos."
48 const char *err_pages[70] = {
49 [CANNOT_FETCH] = "# Couldn't load the page\n",
50 [TOO_MUCH_REDIRECTS] = "# Too much redirects\n",
52 [40] = "# Temporary failure\n",
53 [41] = "# Server unavailable\n",
54 [42] = "# CGI error\n",
55 [43] = "# Proxy error\n",
56 [44] = "# Slow down\n",
57 [50] = "# Permanent failure\n",
58 [51] = "# Not found\n",
60 [53] = "# Proxy request refused\n",
61 [59] = "# Bad request\n",
62 [60] = "# Client certificate required\n",
63 [61] = "# Certificate not authorised\n",
64 [62] = "# Certificate not valid\n"